<!DOCTYPE html> 
<html ng-app="vegaLora">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=1">
        <title>IOT Vega Pulse</title>
        <link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css">
        <link rel="stylesheet" type="text/css" href="./css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="./css/bootstrap-select.min.css">
        <link rel="stylesheet" type="text/css" href="./css/nya-bs-select.min.css">
        <link rel="stylesheet" type="text/css" href="./css/jquery-ui.min.css">
        <link rel="stylesheet" type="text/css" href="./css/jquery-ui.structure.min.css">
        <link rel="stylesheet" type="text/css" href="./css/jquery-ui.theme.min.css">
        <link rel="stylesheet" type="text/css" href="./css/hover-min.css">
        <link rel="stylesheet" type="text/css" href="./css/animate.css">
        <!-- Нужно убрать isteven-->
        <link rel="stylesheet" type="text/css" href="./css/isteven-multi-select.css">
        <link rel="stylesheet" href="./css/libs.min.css">
        <link rel="stylesheet" type="text/css" href="./css/daterangepicker.css" /> 
        <link rel="stylesheet" type="text/css" href="./css/rzslider.min.css" /> 
        <link rel="stylesheet" href="./css/leaflet.css" />
        <link rel="stylesheet" href="./css/kendo.common-material.min.css" />
        <link rel="stylesheet" href="./css/kendo.material.min.css" />
        <link rel="stylesheet" href="./css/kendo.material.mobile.min.css" />
        <link rel="stylesheet" href="./css/sweet-alert.css" />
        <link rel="stylesheet" href="./css/angular-material.min.css">
        <link rel="stylesheet" type="text/css" href="./css/style.css?v1.1.15">
        <script src='./js/aes.js'></script>
        <script src="./js/cookie.js"></script>
        <script src="config.js?v1.1.15"></script>
        <script src="./js/jquery.min.js"></script>
        <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyBizZgj0BFVNcye0FxCCmawJ1sGfx8aT0M"></script>
        <script src="./js/highstock.js"></script>
        <script src="./js/exporting.js"></script>
        <script src="./js/offline-exporting.min.js"></script>
        <script src="./js/bootstrap.min.js"></script>
        <script src="./js/jQuery.print.js"></script>
        <script type="text/javascript" src="./js/libs/js-xlsx/xlsx.core.min.js"></script>
        <script type="text/javascript" src="./js/libs/FileSaver/FileSaver.min.js"></script>
        <script type="text/javascript" src="./js/libs/html2canvas/html2canvas.min.js"></script>
        <script type="text/javascript" src="./js/tableExport.js"></script>
        <script type="text/javascript" src="./js/jquery.base64.js"></script>
        <script src="./js/jquery-ui.min.js"></script>
        <script type="text/javascript" src="./js/moment.min.js"></script>
        <script type="text/javascript" src="./js/moment-with-locales.js"></script>
        <script>
            moment.lang('ru');
            Highcharts.setOptions({
                lang: {
                    months: ['Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь',  'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'],
                    weekdays: ['ВС','ПН', 'ВТ', 'СР', 'ЧТ', 'ПТ', 'СБ'],
                    shortMonths: ['Янв', 'Февр', 'Март', 'Апр', 'Май', 'Июнь',  'Июль', 'Авг', 'Сент', 'Окт', 'Нояб', 'Дек'],
                    printChart: "Печать",
                    downloadJPEG:"Скачать картинку в формате JPEG",
                    downloadPDF: "Скачать в формате  PDF",
                    downloadPNG: "Скачать картинку в формате PNG",
                    downloadSVG: "Скачать SVG вектор картинки",
                    contextButtonTitle: "Дополнительно",
                    resetZoom: "Сбросить масштаб"  
                }
            });
        </script>
        <script type="text/javascript" src="js/vega_base_data.js"></script>
        <script type="text/javascript" src="js/vega_parser.js"></script>
        <script type="text/javascript" src="js/vega_lib.js?v1.1.15"></script>
        <script src="./js/angular.min.js"></script>
        <script src="./js/angular-animate.min.js"></script>
        <script src="./js/angular-aria.min.js"></script>
        <script src="./js/angular-sanitize.min.js"></script>
        <script src="./js/angular-strap.js" data-semver="v2.3.8"></script>
        <script src="./js/angular-strap.tpl.js" data-semver="v2.3.8"></script>
        <script src="./js/angular-strap.docs.tpl.js" data-semver="v2.3.8"></script>
        
        <script src="./js/angular-messages.min.js"></script>
        <script src="./js/angular-material.min.js"></script>
        <!-- Нужно убрать isteven-->
        <script src="./js/isteven-multi-select.js"></script>
        <script src="./js/nya-bs-select.min.js"></script>
        <script src="./js/rzslider.min.js"></script>
        <script src="./js/md5.min.js"></script>
        <script type="text/javascript" src="./js/daterangepicker.js"></script>
        <link rel="shortcut icon" href="favicon.ico?vega">
    </head>
    <body  ng-controller="AppController">  
        <audio preload muted>
            <source src="audio/danger.mp3" type="audio/mpeg">
        </audio>
        <!-- <div class='btn' ng-click='copy(storage.devices.select_channel_temp.name)'>4343344343</div> -->
        <!-- <div class="connect_fail" ng-show="!WS.status">
            <a style='position: fixed;top: 1rem;left: 1rem' href="#" ng-click='page_auth()'>Вернуться на страницу авторизации</a>
            <div class="loader_content">
                <span class="loaderspan fa fa-spinner"></span>
                <p>Сonnect to the server</p>
            </div>
        </div> -->
        <div class="connect_fail" ng-show="!WS.status">
            <a style='position: fixed;top: 1rem;left: 1rem' href="#" ng-click='page_auth()'>Вернуться на страницу авторизации</a>
            <div class="loader_content">
                <span class="loaderspan fa fa-spinner"></span>
                <p>Соединение с сервером</p>
            </div>
        </div>
        <div class="connect_fail" ng-if='loadPage&&WS.status'>
            <div class="loader_content">
                <span class="loaderspan fa fa-spinner"></span>
                <p>Подождите, идет загрузка</p>
            </div>
        </div>
        <!-- <div class="loader-page" ng-show="!WS.status">
            <a style='position: fixed;top: 1rem;left: 1rem; color:white' href="#" ng-click='page_auth()'>Вернуться на страницу авторизации</a>
            <div class="loader-page-content">
                <img src='./images/logo/pulse4.png' class="animated">
                <p>Соединение с сервером</p>
            </div>
        </div>
        <div class="loader-page" ng-if='loadPage'>
            <div class="loader-page-content">
                <img src='./images/logo/pulse4.png' class="animated">
                <p>Подождите, идет загрузка</p>
            </div>
        </div> -->
        <div class="modal animated" id="reportProgress">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header ">
                        <h4 style="font-family: monospace; text-align: left; color:{{managerReport.selectedTypeChannel?'black':'transparent'}}">
                            <span class="fa fa-spinner fa-spin" style="font-size: 15px; margin-right: 0.5rem;"></span>
                            {{managerReport.selectedTypeChannel?managerReport.selectedTypeChannel.fullName:"Неизвестно"}} 
                            <span class="fa fa-angle-right" ng-show="managerReport.selectedType" ></span> 
                            {{managerReport.selectedType?managerReport.selectedType.name:""}} 
                            <span class="fa fa-angle-right" ng-show="managerReport.selectedObject" ></span>
                            {{managerReport.selectedObject?managerReport.selectedObject.name:""}} 
                        </h4> 
                    </div>
                    <div class="modal-body">
                        <p class="text-info" ng-if="managerReport.progress!==100">Идет загрузка данных ...</p>
                        <p class="text-info" ng-if="managerReport.progress==100">Формируется отчет ...</p>
                        <div kendo-progress-bar="progressBar" k-min="0" k-max="100" ng-model="managerReport.progress" style="width: 100%;">
                        </div>
                    </div>
                    <div class="modal-footer" style="text-align: center">
                        <button type="button" class="btn btn-danger" data-dismiss="modal" ng-click="managerReport.resetProgress()">Отменить формирование отчета</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal fade animated" id="edit_device_main">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header ">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">Подключение устройств к приложению</h4>
                    </div>
                    <div class="modal-body">
                        <div class="col-sm-4">
                            <label>Тип</label>
                            <select class='form-control' ng-model="storage.edit_device_main.device_type">
                                <option value='{{type_device.id}}' ng-repeat=" type_device in storage.type_device_list.list  | orderBy:'index'">{{storage.type_device_list.get_type_device(type_device.id).name}}</option>
                            </select>
                        </div>
                        <div class="col-sm-3" style='display: none'>
                           <label>Кол каналов</label>
                           <select class='form-control' ng-model="storage.edit_device_main.count_channels">
                                <option value='1'>1</option>
                                <option value='2'>2</option>
                                <option value='3'>3</option>
                                <option value='4'>4</option>
                                <option value='5'>5</option>
                                <option value='6'>6</option>
                                <option value='7'>7</option>
                                <option value='8'>8</option>
                                <option value='9'>9</option>
                                <option value='10'>10</option>
                                <option value='11'>11</option>
                                <option value='12'>12</option>
                                <option value='13'>13</option>
                                <option value='14'>14</option>
                                <option value='15'>15</option>
                                <option value='16'>16</option>
                                <option value='17'>17</option>
                                <option value='18'>18</option>
                                <option value='19'>19</option>
                                <option value='20'>20</option>
                                <option value='21'>21</option>
                                <option value='22'>22</option>
                                <option value='23'>23</option>
                                <option value='24'>24</option>
                                <option value='25'>25</option>
                                <option value='26'>26</option>
                                <option value='27'>27</option>
                                <option value='28'>28</option>
                                <option value='29'>29</option>
                                <option value='30'>30</option>
                                <option value='31'>31</option>
                                <option value='32'>32</option>
                            </select>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn " data-dismiss="modal">Отмена</button>
                        <button type="button" ng-click="save_device_main()" class="btn btn-success">Подключить</button>
                    </div>
                </div>
            </div>
        </div>
        <!-- <div class="modal fade animated" data-backdrop="static" data-keyboard="false" id="settingsDevice">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header ">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">Настроить устройство</h4>
                        <span>Последний пакет настроек{{convert_date(storage.devices.select_channel_temp._self.tempSettings.ts)!=="Неизвестно"?" был принят сервером " + convert_date(storage.devices.select_channel_temp._self.settings.ts):" не найден"}}</span>
                        <span class="btn fa fa-refresh" title="Обновить" ng-click="refreshSettingsSelectedDevice()"></span>
                    </div>
                    <div class="modal-body">
                        
                    </div>
                    <div class="modal-footer">
                        
                    </div>
                </div>
            </div>
        </div> -->
        <div class="modal fade animated" id="sendDataDevice">
            <div class="modal-dialog modal-sm" role="document">
                <div class="modal-content">
                    <div class="modal-header ">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">Изменение состояния</h4>
                    </div>
                    <div class="modal-body">
                       <h5 ng-if='storage.devices.select_channel_temp.statistics["last_sensor_out_"+storage.devices.select_channel_temp.edit_out]'>Выключить {{getSelectEditChannelName()}}</h3>
                       <h5 ng-if='!storage.devices.select_channel_temp.statistics["last_sensor_out_"+storage.devices.select_channel_temp.edit_out]'>Включить {{getSelectEditChannelName()}}</h3>
                       <rzslider ng-if='!storage.devices.select_channel_temp.statistics["last_sensor_out_"+storage.devices.select_channel_temp.edit_out]&&storage.devices.select_channel_temp.type_channel!==15' class="custom-slider" 
                            rz-slider-model="slider_out.minValue"
                            rz-slider-options="slider_out.options"></rzslider>
                       <p ng-show='!storage.devices.select_channel_temp.statistics["last_sensor_out_"+storage.devices.select_channel_temp.edit_out]&&storage.devices.select_channel_temp.type_channel==15'>Введите количество секунд на которое хотите включить выход «{{storage.devices.select_channel_temp['name_sensor_out_'+storage.devices.select_channel_temp.edit_out]}}». Допустимые значения от 0 - 65535, где 0 - включить на всегда. </p>
                       <input title="Время на которое следует включить выход" placeholder="Количество секунд" ng-class="valid.isInt(time_sensors_out_ug)?'valid':'not_valid'" type='text' ng-class="form-control" ng-model="time_sensors_out_ug" ng-show='!storage.devices.select_channel_temp.statistics["last_sensor_out_"+storage.devices.select_channel_temp.edit_out]&&storage.devices.select_channel_temp.type_channel==15'>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn " data-dismiss="modal">Отмена</button>
                        <button type="button" ng-click="control_sensor_out(storage.devices.select_channel_temp.edit_out,!storage.devices.select_channel_temp.statistics['last_sensor_out_'+storage.devices.select_channel_temp.edit_out])" class="btn btn-success">Отправить</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal fade animated" id="sendCommandDevice">
            <div class="modal-dialog modal-sm" role="document">
                <div class="modal-content" ng-if='storage.devices.select_channel_temp'>
                    <div class="modal-header ">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==26 && storage.devices.select_channel_temp.send_command_to_device.cmd == 170 ' class="modal-title">Регулировка интенсивности освещения</h4>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 5 ' class="modal-title">Запрос показаний по тарифам</h4>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 8 ' class="modal-title">Запрос тарифного расписания</h4>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 25 ' class="modal-title">Запрос архива накоплений энергии по 4 тарифам за 36 последние месяцев</h4>

                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 26 ' class="modal-title">Запрос архива накоплений энергии по 4 тарифам за 128 последних суток</h4>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 27 ' class="modal-title">Запрос 30-минутного среза активной мощности за сутки</h4>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 28 ' class="modal-title">Запрос журнала</h4>

                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 18 ' class="modal-title">Запись адреса установки счётчика</h4>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 19 ' class="modal-title">Запись параметров функционирования журнала превышения установленной активной мощности</h4>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ' class="modal-title">Запись режима функционирования реле управления нагрузкой</h4>
                        <h4 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 21 ' class="modal-title">Команда установки времени</h4>
                    </div>
                    <div class="modal-body">
                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==26 && storage.devices.select_channel_temp.send_command_to_device.cmd == 170' >Интенсивность освещения, %</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==26 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 170 ) ' class='form-control' ng-model="storage.devices.select_channel_temp.send_command_to_device.value">
                            <option ng-repeat='v in forRange(0,100)' ng-value='v'>{{v.toString().length>1?v:'0'+v}}</option>
                        </select>
                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 21' >Дата</h5>
                        <input ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 21' ng-model = 'storage.devices.select_channel_temp.send_command_to_device.date' type='date' class="form-control" >
                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 21' >Часы</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 21 ) ' class='form-control' ng-model="storage.devices.select_channel_temp.send_command_to_device.hour">
                            <option ng-repeat='h in forRange(0,23)' ng-value='h'>{{h.toString().length>1?h:'0'+h}}</option>
                        </select>
                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 21' >Минуты</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 21 ) ' class='form-control' ng-model="storage.devices.select_channel_temp.send_command_to_device.minute">
                            <option ng-repeat='m in forRange(0,59)' ng-value='m'>{{m.toString().length>1?m:'0'+m}}</option>
                        </select>
                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 21 ) ' >Смена сезонов</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 21 ) ' class="form-control" ng-model="storage.devices.select_channel_temp.send_command_to_device.mode" >
                            <option ng-value='1' value='1'>Включено</option>
                            <option ng-value='0' value='0'>Выключено</option>
                        </select>

                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 18 ' >Адрес установки счётчика</h5>
                        <input ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 18 ' type='text' class="form-control" placeholder="Адрес" maxlength="16" ng-model='storage.devices.select_channel_temp.send_command_to_device.address'>

                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 19 || storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' >Порог активной мощности в ваттах, домноженный на 10</h5>
                        <input  ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 19 || storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' type='text' class="form-control"  maxlength="16" ng-model='storage.devices.select_channel_temp.send_command_to_device.threshold'>
                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 19 || storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' >Время усреднения, мин</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 19 ) ' class='form-control' ng-model="storage.devices.select_channel_temp.send_command_to_device.minute">
                            <option ng-repeat='m in forRange(1,60)' ng-value='m'>{{m.toString().length>1?m:'0'+m}}</option>
                        </select>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' class='form-control' ng-model="storage.devices.select_channel_temp.send_command_to_device.minute">
                            <option ng-repeat='m in forRange(0,60)' ng-value='m'>{{m.toString().length>1?m:'0'+m}}</option>
                        </select>
                        
                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 19 || storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' >Режим измерения мощности</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 19 || storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' class="form-control" ng-model="storage.devices.select_channel_temp.send_command_to_device.mode" >
                            <option ng-value='0' value='0'>Использовать значение мощности из получасового профиля</option>
                            <option ng-value='1' value='1'>Измерять время исходя из заданного значения (Время усреднения, мин)</option>
                        </select>

                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' >Задержка в минутах перед автоматическим включением реле</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' class='form-control' ng-model="storage.devices.select_channel_temp.send_command_to_device.delay">
                            <option ng-value='0'>Автоматическое включение реле отключено</option>
                            <option ng-repeat='m in forRange(1,60)' ng-value='m'>{{m.toString().length>1?m:'0'+m}}</option>
                        </select>

                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' >Количество автоматических включений реле в сутках</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ) ' class='form-control' ng-model="storage.devices.select_channel_temp.send_command_to_device.count_relay">
                            <option ng-value='0'>Количество отключений в сутки не ограничено</option>
                            <option ng-repeat='m in forRange(1,9)' ng-value='m'>{{m}}</option>
                        </select>

                        <h5     ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ' >Режим измерения мощности</h5>
                        <select ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 20 ' class="form-control" ng-model="storage.devices.select_channel_temp.send_command_to_device.mode" >
                            <option ng-value='0' value='0'>Режим 0</option>
                            <option ng-value='1' value='1'>Режим 1</option>
                        </select>

                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 5 ' >Тип</h5>
                        <select class="form-control" ng-change='change_send_command_to_device_type()' ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 5 ' ng-model="storage.devices.select_channel_temp.send_command_to_device.type" >
                            <option ng-value='0' value='0'>На момент запроса</option>
                            <option ng-value='1' value='1'>Из суточного журнала</option>
                            <option ng-value='2' value='2'>Из месячного журнала</option>
                        </select>
                        

                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 5 && storage.devices.select_channel_temp.send_command_to_device.type != 0 ' >Показания сняты</h5>
                        <input ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 5 && storage.devices.select_channel_temp.send_command_to_device.type != 0 ' ng-model = 'storage.devices.select_channel_temp.send_command_to_device.date' type='date' class="form-control" >
                        <!-- <input ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 5 && storage.devices.select_channel_temp.send_command_to_device.type == 1 ' ng-model = 'storage.devices.select_channel_temp.send_command_to_device.time' type='time' class="form-control" > -->
                        
                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 8 ' >Сезон</h5>
                        <select class="form-control" ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 8 ' ng-model="storage.devices.select_channel_temp.send_command_to_device.season" >
                            <option ng-value='0' value='0'>Сезон №1</option>
                            <option ng-value='1' value='1'>Сезон №2</option>
                            <option ng-value='2' value='2'>Сезон №3</option>
                            <option ng-value='3' value='3'>Сезон №4</option>
                            <option ng-value='4' value='4'>Сезон №5</option>
                            <option ng-value='5' value='5'>Сезон №6</option>
                            <option ng-value='6' value='6'>Сезон №7</option>
                            <option ng-value='7' value='7'>Сезон №8</option>
                            <option ng-value='8' value='8'>Сезон №9</option>
                            <option ng-value='9' value='9'>Сезон №10</option>
                            <option ng-value='10' value='10'>Сезон №11</option>
                            <option ng-value='11' value='11'>Сезон №12</option>
                        </select>
                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 8 ' >Код тарифного расписания</h5>
                        <select class="form-control" ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 8 ' ng-model="storage.devices.select_channel_temp.send_command_to_device.code" >
                            <option ng-value='0' value='0'>Праздник</option>
                            <option ng-value='1' value='1'>Суббота</option>
                            <option ng-value='2' value='2'>Воскресенье</option>
                            <option ng-value='3' value='3'>Рабочий</option>
                        </select>
                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 &&( storage.devices.select_channel_temp.send_command_to_device.cmd == 26 || storage.devices.select_channel_temp.send_command_to_device.cmd == 27)' >День</h5>
                        <select class="form-control" ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 26 || storage.devices.select_channel_temp.send_command_to_device.cmd == 27) ' ng-model="storage.devices.select_channel_temp.send_command_to_device.day" >
                            <option ng-value='d' ng-repeat = 'd in forRange(1,31)'>{{d.toString().length>1?d:'0'+d}}</option>
                        </select>
                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 25 || storage.devices.select_channel_temp.send_command_to_device.cmd == 26 || storage.devices.select_channel_temp.send_command_to_device.cmd == 27) ' >Месяц</h5>
                        <select class="form-control" ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 25 || storage.devices.select_channel_temp.send_command_to_device.cmd == 26 || storage.devices.select_channel_temp.send_command_to_device.cmd == 27) ' ng-model="storage.devices.select_channel_temp.send_command_to_device.month" >
                            <option ng-value='1' value='1'>Январь</option>
                            <option ng-value='2' value='2'>Февраль</option>
                            <option ng-value='3' value='3'>Март</option>
                            <option ng-value='4' value='4'>Апрель</option>
                            <option ng-value='5' value='5'>Май</option>
                            <option ng-value='6' value='6'>Июнь</option>
                            <option ng-value='7' value='7'>Июль</option>
                            <option ng-value='8' value='8'>Август</option>
                            <option ng-value='9' value='9'>Сентябрь</option>
                            <option ng-value='10' value='10'>Октябрь</option>
                            <option ng-value='11' value='11'>Ноябрь</option>
                            <option ng-value='12' value='12'>Декабрь</option>
                        </select>
                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 25 || storage.devices.select_channel_temp.send_command_to_device.cmd == 26 || storage.devices.select_channel_temp.send_command_to_device.cmd == 27) ' >Год</h5>
                        <select class="form-control" ng-if=' storage.devices.select_channel_temp._self.device_type==24 && ( storage.devices.select_channel_temp.send_command_to_device.cmd == 25 || storage.devices.select_channel_temp.send_command_to_device.cmd == 26 || storage.devices.select_channel_temp.send_command_to_device.cmd == 27) ' ng-model="storage.devices.select_channel_temp.send_command_to_device.year" >
                            <option ng-value='y' ng-repeat = 'y in forRange(0,99)'>20{{y.toString().length>1?y:'0'+y}}г.</option>
                        </select>
                        <h5 ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 28 ' >Тип журнала</h5>
                        <select class="form-control" ng-if=' storage.devices.select_channel_temp._self.device_type==24 && storage.devices.select_channel_temp.send_command_to_device.cmd == 28 ' ng-model="storage.devices.select_channel_temp.send_command_to_device.journal" >
                            <option ng-value='0' value='0'>Включение/Выключение питания</option>
                            <option ng-value='11' value='11'>Отклонения частоты от заданных пределов</option>
                            <option ng-value='12' value='12'>Отклонения напряжения от заданных пределов</option>
                            <option ng-value='10' value='10'>Перенапряжения</option>
                            <option ng-value='9' value='9'>Провалы  напряжения</option>
                            <option ng-value='8' value='8'>Включение/Выключение реле нагрузки</option>
                            <option ng-value='5' value='5'>Вскрытия корпуса</option>
                            <option ng-value='1' value='1'>Изменения времени/даты</option>
                            <option ng-value='2' value='2'>Коррекция времени</option>
                            <option ng-value='3' value='3'>Изменения тарифного расписания</option>
                            <option ng-value='4' value='4'>Записи команд по интерфейсу</option>
                            <option ng-value='7' value='7'>Превышения мощности</option>
                            <option ng-value='13' value='13'>Пиковые значения напряжений</option>
                        </select>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn " data-dismiss="modal">Отмена</button>
                        <button type="button" ng-disabled='!valid_send_command()' ng-click="valid_send_command()&&control_send_command()" class="btn btn-success">Отправить</button>
                    </div>
                </div>
            </div>
        </div>
        <md-content>
            <md-toolbar class="md-hue-2">
                <div class="md-toolbar-tools">
                    <span class="logo help" title='IoT Vega Pulse v1.1.15'>IoT Vega Pulse</span>
                    <md-button class="btn-header  my_animated" ng-class="(check_page==1||check_page==2)?'btn-header-active':''" ng-click="storage.devices.select_channel_temp.name!==undefined?selectPage(2):selectPage(1)">
                        Приборы
                    </md-button>
                    <md-button class="btn-header  my_animated" ng-show='command_list_cookie.get_data' ng-class="(check_page==8)?'btn-header-active':''" ng-click="selectPage(8);">
                        Отчеты
                    </md-button>
                    <md-button ng-disabled = 'WS.logs.list.length==0' class="btn-header  my_animated" ng-class="(check_page==7)?'btn-header-active':''" ng-click="WS.logs.list.length!=0&&selectPage(7)">
                        Онлайн данные
                    </md-button>
                    <div flex md-truncate></div>
                    <md-button class="md-icon-button" ng-if='audio_danger' title="{{storage.map_nav.audio.muted?'Отключить':'Включить'}} звук уведомлений" ng-click="storage.map_nav.audio.muted = !storage.map_nav.audio.muted ">
                        <md-icon class="fa" class='fa' ng-class='storage.map_nav.audio.muted?"fa-volume-off":"fa-volume-up"'></md-icon>
                    </md-button>
                    <md-menu>
                        <md-button class="md-icon-button" ng-click='storage.events.countActive()>0&&$mdMenu.open($event)'>
                            <md-icon class="fa fa-bell"></md-icon>
                            <span ng-show='storage.events.countActive()>0' class="notifications">{{storage.events.getTextCountActive()}}</span>
                        </md-button>
                        <md-menu-content width='6' ng-show='storage.events.countActive()>0'>
                            <md-button ng-click='storage.events.inActiveAll()'>
                                Отметить все как просмотренные ({{storage.events.countActive()}})
                            </md-button>
                            <md-menu-divider></md-menu-divider>
                            <md-button ng-if='event.active' ng-click='full_select_channel(event.channel)' class="item-event" ng-if='event.channel' ng-repeat="event in storage.events.list | orderBy:'-dateEvent'" >
                                <md-icon style="color:{{storage.color_list.get_color(event.channel.color)}};" class="fa fa-{{storage.type_channel_list.get_type_channel(event.channel.type_channel).span}}"></md-icon>
                                <div class="md-list-item-text"> 
                                    <h3>{{event.title}}</h3>
                                    <h4>{{event.message}}</h4>
                                    <p title='Время компьютера'> {{event.getDateEvent()}}</p>
                                </div>
                            </md-button>
                        </md-menu-content>
                    </md-menu>
                    

                    <md-menu>
                        <md-button class="md-icon-button" aria-label="Открыть меню" ng-click='$mdMenu.open($event)'>
                            <md-icon class="fa fa-ellipsis-v"></md-icon>
                        </md-button>
                        <md-menu-content>
                            <md-menu-item class='login-user'>
                                <md-icon class="fa fa-user-circle"></md-icon>
                                <p>{{getLogin()}}</p>
                                <!-- <div title="Вы авторизованы как пользователь {{getLogin()}}" class='help header_login'><span class='fa fa-user-circle'> </span> {{getLogin()}}</div> -->
                            </md-menu-item>
                            <md-menu-divider></md-menu-divider>
                            <md-menu-item >
                                <div ng-show='select_language' id="google_translate_element" class="btn btn-header"></div>
                                <script type="text/javascript">
                                    function googleTranslateElementInit() {
                                        if(select_language)
                                        {
                                            new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
                                            setTimeout(function()
                                            {
                                                let langDiv = $('.skiptranslate')[0];
                                                let validLangDiv = langDiv;
                                                if( validLangDiv ) 
                                                {
                                                    if ( langDiv.style.display != 'none' )
                                                    {
                                                        $('.left-panel').css('max-height','CALC(100% - 39px)');
                                                        $('.right-panel').css('max-height','CALC(100% - 39px)');
                                                    }
                                                }
                                            },3000)
                                        }
                                    }
                                </script>
                                <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
                            </md-menu-item>   
                            <!-- <md-menu-divider></md-menu-divider> -->
                            <md-menu-item>
                                <md-button ng-click='exit()'>
                                    Выход
                                </md-button>
                            </md-menu-item>
                        </md-menu-content>
                    </md-menu>
                    <!-- <md-button ng-disabled = 'WS.logs.list.length==0' class="btn-header  my_animated" ng-class="(check_page==7)?'btn-header-active':''" ng-click="WS.logs.list.length!=0&&selectPage(7)">
                        Выход
                    </md-button> -->
                </div>
            </md-toolbar>
        </md-content>

        <div class="left-panel"  ng-show="(check_page==1 || check_page==2 || check_page==10 || check_page==11 || check_page==12) && !hideLeftPanel">
            <div class="head-panel">
                <!-- <div class='logo_container'>
                    <img ng-click="home()" class="img_logo" src="./images/logo/logo.png">
                </div> -->
                <div class='control_container'>
                    <div class='search_form search_form_min control'>
                        <input type="text" class="form-control search_input" ng-change="editFilterDevices()" ng-model='storage.map_nav.filterDevices' placeholder="Поиск устройства">
                        <span class="fa fa-search search_span"></span>
                    </div>
                    <div class='control btn' title="Фильтровать" ng-click='showFilterDevices()'>
                        <span class='fa fa-filter'></span>
                    </div>
                    <div class='control btn' ng-show='command_list_cookie.manage_device_appdata' title="Добавить новое устройство" ng-click='showDeviceEditor()'>
                        <span class='fa fa-plus'></span>
                    </div>
                    <div class='btn btn-default right btn-hideLeftPanel' ng-click='hideLeftPanel = ! hideLeftPanel'>Скрыть</div>
                </div>
            </div>
            <div class="content-panel">
                <div ng-if="check_page==1 || check_page==2 || check_page==7 || check_page==10 || check_page==11 || check_page==12">
                    <ul class="ul-menu">
                        <div class='level_1-item' ng-if="level_1.valid()" ng-repeat="level_1 in storage.map_nav.list  ">
                            <span class='level_danger' ng-if='storage.map_nav.get_level_1_danger(level_1.name,level_1.address)>0'>
                                <span class='fa fa-warning'></span>
                                ТРЕВОГА
                            </span>
                            <li title="{{level_1.name+', '+level_1.address}}" ng-click="level_1.check()" class="li-menu my_animated" ng-class='storage.map_nav.get_level_1_danger(level_1.name,level_1.address)>0?"olyrm3":""'>
                                <h4>{{level_1.name}}</h4>
                                <p>{{level_1.address}}</p>
                            </li>
                            <ul  class="ul-menu" ng-show="level_1._check">
                                <div ng-if="level_2.valid()" ng-repeat=" level_2 in objectToArray(level_1.list) | orderBy:natural('name')">
                                        <li  ng-class='storage.map_nav.get_level_2_danger(level_2.name,level_1.name,level_1.address)>0?"olyrm3":""' class="li-menu-level_2 li-menu my_animated" ng-click="level_2.check()">
                                            {{level_2.name}}
                                            <span class='level_danger' ng-show='storage.map_nav.get_level_2_danger(level_2.name,level_1.name,level_1.address)>0'>
                                                <span class='fa fa-warning'></span>
                                                ТРЕВОГА
                                            </span>
                                        </li>
                                        <ul class="ul-menu" ng-show="level_2._check">
                                            <div ng-if="channel.name!==undefined&&channel.level_2==level_2.name&&validLevel_3(key,channel)" ng-repeat="(key,channel) in level_2.list " class='item_li-menu-level_3'>
                                            <li ng-class='channel.danger?"olyrm":""'  title="{{channel.devEui}}" ng-click="select_channel(channel.devEui,channel.num_channel)" class="li-menu-level_3 li-menu my_animated" >
                                                <span style="border-color:{{storage.color_list.get_color(channel.color)}};color:{{checkSelectedChannel(channel)?'white':storage.color_list.get_color(channel.color)}}; background:{{checkSelectedChannel(channel)?storage.color_list.get_color(channel.color):'transparent'}};"   class="my_animated {{storage.type_channel_list.get_type_channel(channel.type_channel).class}} icon-device fa fa-{{storage.type_channel_list.get_type_channel(channel.type_channel).span}}"></span>
                                                {{channel.name}}
                                            </li>
                                            <div ng-show='command_list_cookie.manage_device_appdata' class='btn btn-li' title='Редактировать' ng-click="select_channel_edit(storage.devices.get_device(channel.devEui),channel.num_channel,storage.color_list.get_full_color(channel.color),storage.type_channel_list.get_type_channel(channel.type_channel))">
                                                <span class='fa fa-edit'></span>
                                            </div>
                                        </div>
                                        </ul>
                                </div>
                            </ul>
                        </div>
                    </ul>
                </div>
            </div>
            <div class="footer-panel">
            </div>
        </div>
        <div class='btn btn-default right btn-showLeftPanel' ng-show='hideLeftPanel&&check_page!=8&&check_page!=7' ng-click='hideLeftPanel = ! hideLeftPanel' title="Показать панель"><span class='fa fa-navicon'></span></div>
        
        <div class="col-sm-12 padding0 content" ng-show='check_page==1||check_page==2||check_page==4||check_page==10||check_page==11||check_page==12'>
            <div class="page col-sm-12" id="page1" ng-show="check_page=='1'">
                <div  ng-show='WS.loader' class='loader'></div>
                <div  ng-hide='WS.loader' class="page-conteiner col-sm-12 ">
                    <div class="content-page col-sm-12 ">
                        <div class="col-sm-12 padding0 text-center head-panel_1" style="">
                            <div class="col-sm-3"><table><tr><td rowspan="2" class="table-icon-type_1" ><span class="fa fa-cubes color-vega-green"></span></td><td class="table_type_1_text">Объектов</td></tr><tr><td class="table_type_2_text">{{storage.map_nav.getCountL1()}}</td></tr></table></div>
                            <div class="col-sm-3"><table><tr><td rowspan="2" class="table-icon-type_1" ><span class="fa fa-cube color-vega-light_blue"></span></td><td class="table_type_1_text">Помещений</td></tr><tr><td class="table_type_2_text">{{storage.map_nav.getCountL2()}}</td></tr></table></div>
                            <div class="col-sm-3" ng-show='command_list_cookie.manage_device_appdata||command_list_cookie.delete_device_appdata'><table><tr><td rowspan="2" class="table-icon-type_1" ><span class="fa fa-podcast color-vega-blue"></span></td><td class="table_type_1_text">Радио модемов</td></tr><tr><td class="table_type_2_text">{{storage.devices.devices_list.length}}</td></tr></table></div>
                            <div class="col-sm-3"><table><tr><td rowspan="2" class="table-icon-type_1" ><span class="fa fa-dashboard color-vega-indigo"></span></td><td class="table_type_1_text">Устройств</td></tr><tr><td class="table_type_2_text">{{storage.devices.get_count_channel()}}</td></tr></table></div>
                        </div>
                        <div class="col-sm-12 padding0">
                            <h2 class="h2_head">Добро пожаловать в приложение IOT Vega Pulse</h2>
                            <blockquote>
                                <p style="text-indent: 20px; line-height: 3rem">Давайте начнем:</p>
                            <ul>
                                <li>Получайте показания с приборов учета</li> 
                                <li>Получайте статистические данные за выбранный период в формате таблицы или графика</li>
                                <li>Формируйте отчеты о потреблении</li> 
                                <li>Просматривайте информацию о состоянии подключенных устройств</li> 
                                <li>Отслеживайте тревоги</li> 
                                <li>Подключайте устройства и меняйте их настройки</li> 
                            </ul></blockquote>
                        </div>
                    </div>
                </div>   
            </div>
            <div class="page col-sm-12" id="page2" ng-show="check_page=='2'">
                <div ng-show='WS.loader' class='loader'>
                    <div class="sk-fading-circle">
                        <div class="sk-circle1 sk-circle"></div>
                        <div class="sk-circle2 sk-circle"></div>
                        <div class="sk-circle3 sk-circle"></div>
                        <div class="sk-circle4 sk-circle"></div>
                        <div class="sk-circle5 sk-circle"></div>
                        <div class="sk-circle6 sk-circle"></div>
                        <div class="sk-circle7 sk-circle"></div>
                        <div class="sk-circle8 sk-circle"></div>
                        <div class="sk-circle9 sk-circle"></div>
                        <div class="sk-circle10 sk-circle"></div>
                        <div class="sk-circle11 sk-circle"></div>
                        <div class="sk-circle12 sk-circle"></div>
                        </div>
                </div>
                <div ng-hide='WS.loader' class="page-conteiner col-sm-12 padding0">
                    <div class="content-page col-sm-12">
                        <div ng-show="toggle_sticky.general_info" class="col-sm-12 padding0">
                            
                            
                            <!-- <md-button>Отметить все как прочитанные</md-button>
                            <div class="alert alert-danger" role='alert'>

                            </div> -->
                            <div class="col-sm-12 padding0 title_device">
                                <h4 style="font-family: monospace">{{storage.devices.select_channel_temp.name_level_1}} <span class="fa fa-angle-right"></span> {{storage.devices.select_channel_temp.level_2}} <span class="fa fa-angle-right"></span> {{storage.devices.select_channel_temp.name}}, {{storage.devices.select_channel_temp.devEui}}</h4>
                                <h5 style="font-family: monospace" ng-if='storage.devices.select_channel_temp._self.sn!==undefined'>Заводской номер LoRaScaner: {{storage.devices.select_channel_temp._self.sn}}</h5>
                                <!-- <div class="btn btn-default title_device_btn" ng-show="checkSettingDevice()" title="Настроить устройство" ng-click="showSettingsDevice()"> 
                                    Настройки <span class="fa fa-gear"></span> 
                                </div> -->
                            </div>
                            <div class="col-sm-12 padding0">
                                <md-content>
                                    <md-tabs md-dynamic-height md-border-bottom md-selected='device_page'>
                                        <!-- Страница просмотра данных от устройства -->
                                        <md-tab label="Данные">
                                            <md-content class="md-padding">
                                                <p class="md-body-1">
                                                    <!-- Текущее состояние -->
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-calendar icon-device_icon"></span></td>
                                                                        <td class="head-info">Дата отгрузки </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="!command_list_cookie.manage_device_appdata">
                                                                            {{convert_date(storage.devices.select_channel_temp.date_shipment,storage.devices.select_channel_temp.type_channel)}}
                                                                        </td>
                                                                        <td class="body-info" ng-if="command_list_cookie.manage_device_appdata">
                                                                            <input type="text"  bs-datepicker data-date-format="dd.MM.yyyy" class="form-control block-info-input" ng-change='editDeviceDateShipment()'  title="Дата отгрузки" ng-model="storage.devices.select_channel_temp.date_shipment">
                                                                            <!-- <md-datepicker title="Дата отгрузки" ng-change='editDeviceDateShipment()' ng-model="storage.devices.select_channel_temp.date_shipment"></md-datepicker> -->
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-snowflake-o icon-device_icon"></span></td>
                                                                        <td class="head-info">Тип груза </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="!command_list_cookie.manage_device_appdata">
                                                                            {{storage.getNameTypeCargo(storage.devices.select_channel_temp.typeCargo)}}
                                                                        </td>
                                                                        <td class="body-info" ng-if="command_list_cookie.manage_device_appdata">
                                                                            <select ng-model="storage.devices.select_channel_temp.typeCargo"  ng-change='editDeviceTypeCargo()'  placeholder="Выбор типа груза" title="Выбор типа груза" class="form-control block-info-input">
                                                                                <option  ng-value='type.id'  ng-repeat="type in storage.type_cargo_list">{{type.name}}</option>
                                                                            </select>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-truck icon-device_icon"></span></td>
                                                                        <td class="head-info">Груз </td>
                                                                    </tr>
                                                                    <tr ng-if="!command_list_cookie.manage_device_appdata" ng-if="!command_list_cookie.manage_device_appdata">
                                                                        <td class="body-info">
                                                                            {{ storage.devices.select_channel_temp.cargo?storage.devices.select_channel_temp.cargo:'-'}}
                                                                        </td>
                                                                    </tr>
                                                                    <td class="body-info" ng-if="command_list_cookie.manage_device_appdata">
                                                                        <input type="text" class="form-control block-info-input" ng-change='editDeviceTextParam()' maxlength="25"  placeholder="Груз"  title="Груз" ng-model="storage.devices.select_channel_temp.cargo">
                                                                    </td>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-id-badge icon-device_icon"></span></td>
                                                                        <td class="head-info">Поставщик </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="!command_list_cookie.manage_device_appdata">
                                                                            {{ storage.devices.select_channel_temp.provider?storage.devices.select_channel_temp.provider:'-'}}
                                                                        </td>
                                                                        <td class="body-info" ng-if="command_list_cookie.manage_device_appdata">
                                                                            <input type="text" class="form-control block-info-input" ng-change='editDeviceTextParam()' maxlength="25"  placeholder="Поставщик"  title="Поставщик" ng-model="storage.devices.select_channel_temp.provider">
                                                                        </td>
                                                                    </tr>
                                                                    
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div> 
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon">№</span></td>
                                                                        <td class="head-info">Накладная</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="!command_list_cookie.manage_device_appdata">
                                                                            {{ storage.devices.select_channel_temp.personal_num?storage.devices.select_channel_temp.personal_num:'-'}}
                                                                        </td>
                                                                        <td class="body-info" ng-if="command_list_cookie.manage_device_appdata">
                                                                            <input type="text" class="form-control block-info-input" ng-change='editDeviceTextParam()' maxlength="25"  placeholder="Накладная"  title="Накладная" ng-model="storage.devices.select_channel_temp.personal_num">
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==30'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon fa-clock-o"></span></td>
                                                                        <td class="head-info">Время оконечного устройства</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_time_rus}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==30'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon fa-clock-o"></span></td>
                                                                        <td class="head-info">Время сервера</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_ts_rus}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6&&storage.devices.select_channel_temp.statistics.last_ts_rus&&getVersionSelectedChannel()==0'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon fa-clock-o"></span></td>
                                                                        <td class="head-info">Время</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_ts_rus}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='(storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25)&&storage.devices.select_channel_temp.statistics.last_time_rus'>
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa  icon-device_icon fa-clock-o"></span></td>
                                                                            <td class="head-info">Время</td>
                                                                        </tr>
                                                                        <tr><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_time_rus}}</td></tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6&&storage.devices.select_channel_temp.statistics.last_ts_rus&&getVersionSelectedChannel()>=1'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon fa-clock-o"></span></td>
                                                                        <td class="head-info">Время</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_time_rus}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==29'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr><td class="body-info" title="{{ get_value0_21mB(storage.devices.select_channel_temp.statistics.last_sensor) +' '+storage.devices.select_channel_temp.unit}}">{{ get_value0_21mB(storage.devices.select_channel_temp.statistics.last_sensor) +' '+storage.devices.select_channel_temp.unit}} <span class="time" style='cursor: help' title="Время оконечного устройства">({{storage.devices.select_channel_temp.statistics.last_time_rus}})</span></td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1&&getActiveDevice().device_type!=3'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr><td class="body-info" title="{{ get_value_select_channel_last() +' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}">{{ get_value_select_channel_last() +' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}} <span class="time" style='cursor: help' title="Время оконечного устройства">({{storage.devices.select_channel_temp.statistics.last_time_rus}})</span></td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1&&getActiveDevice().device_type==3&&getVersionSelectedChannel()==0'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr><td class="body-info" title="{{ get_value_select_channel_last() +' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}">{{ get_value_select_channel_last() +' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}} <span class="time" style='cursor: help' title="Время cервера">({{storage.devices.select_channel_temp.statistics.last_ts_rus}})</span></td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1&&getActiveDevice().device_type==3&&getVersionSelectedChannel()==1'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr><td class="body-info" title="{{ get_value_select_channel_last() +' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}">{{ get_value_select_channel_last() +' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}} <span class="time" style='cursor: help' title="Время оконечного устройства">({{storage.devices.select_channel_temp.statistics.last_time_rus}})</span></td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr><td class="body-info" title="{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensorKB,4)}} куб. м">{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensorKB,4)}} куб. м <span class="time" style='cursor: help' title="Время оконечного устройства">({{storage.devices.select_channel_temp.statistics.last_time_rus}})</span></td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr> 
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum!==undefined" title="{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensor_rate_sum,4)+' кВт⋅ч'}}">{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensor_rate_sum,4)+' кВт⋅ч'}}  <span class="time" style='cursor: help' title="Время оконечного устройства">({{storage.devices.select_channel_temp.statistics.last_time_rus}})</span></td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum===undefined">Неизвестны</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9&&getVersionSelectedChannel()==0'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr> 
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum!==undefined" title="{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensor_rate_sum*storage.devices.select_channel_temp.kt,4)+' кВт⋅ч'}}">{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensor_rate_sum*storage.devices.select_channel_temp.kt,4)+' кВт⋅ч'}}  <span class="time" style='cursor: help' title="Время сервера">({{storage.devices.select_channel_temp.statistics.last_ts_rus}})</span></td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum===undefined">Неизвестны</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9&&getVersionSelectedChannel()==1'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr> 
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum!==undefined" title="{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensor_rate_sum*storage.devices.select_channel_temp.kt,4)+' кВт⋅ч'}}">{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensor_rate_sum*storage.devices.select_channel_temp.kt,4)+' кВт⋅ч'}}  <span class="time" style='cursor: help' title="Время оконечного устройства">({{storage.devices.select_channel_temp.statistics.last_time_rus}})</span></td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum===undefined">Неизвестны</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr> 
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum!==undefined" title="{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensor_rate_sum,3)+' м³'}}">{{ my_converter.round_size_str(storage.devices.select_channel_temp.statistics.last_sensor_rate_sum,3)+' м³'}}  <span class="time" style='cursor: help' title="Время оконечного устройства">({{storage.devices.select_channel_temp.statistics.last_time_rus}})</span></td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum===undefined">Неизвестны</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущие показания </td>
                                                                    </tr>
                                                                    <tr> 
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum!==undefined" title="{{ storage.devices.select_channel_temp.statistics.last_sensor_rate_sum+' Wh'}}">{{ storage.devices.select_channel_temp.statistics.last_sensor_rate_sum + ' Wh'}}  <span class="time" style='cursor: help' title="Время оконечного устройства">({{storage.devices.select_channel_temp.statistics.last_time_rus}})</span></td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_sensor_rate_sum===undefined">Неизвестны</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-television icon-device_icon"></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.instrument}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info" ng-class="cssSelectedSensorTp()">{{get_value4_20mA()}} {{get_value4_20mA()!='Неизвестно'?storage.devices.select_channel_temp.unit:''}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='(storage.devices.select_channel_temp.statistics.last_ts||storage.devices.select_channel_temp.statistics.last_time)&&storage.devices.select_channel_temp.type_channel!=14&&storage.devices.select_channel_temp.type_channel!=16&&storage.devices.select_channel_temp.type_channel!=30&&getActiveDevice().device_type!=3&&getActiveDevice().device_type!=31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-battery-{{get_battery(storage.devices.select_channel_temp.statistics.last_charge)}} icon-device_icon"></span></td>
                                                                        <td class="head-info">Заряд батареи </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_charge}}%</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel==30'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-battery icon-device_icon"></span></td>
                                                                        <td class="head-info">Напряжение mВ </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_mv/1000}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel==30'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-calculator icon-device_icon"></span></td>
                                                                        <td class="head-info">Счетчик</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_num_package}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">Температура {{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5?'устройства':''}}</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature!==undefined" ng-class='getColorTemperature(storage.devices.select_channel_temp.statistics.last_temperature)'>{{ storage.devices.select_channel_temp.statistics.last_temperature}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25||storage.devices.select_channel_temp.type_channel==31'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">Температура</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature!==undefined" ng-class='getColorTemperatureNew(storage.devices.select_channel_temp.statistics)'>{{ storage.devices.select_channel_temp.statistics.last_temperature}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                            <span ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23' class='fa fa-info help help_block_info' title="Значения нормальной температуры от {{storage.devices.select_channel_temp.statistics.last_min_temperature}} до {{storage.devices.select_channel_temp.statistics.last_max_temperature}} °C"></span>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2 && storage.devices.select_channel_temp._self.device_type == 28'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">Температура</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature!==undefined" ng-class='getColorTemperatureNew(storage.devices.select_channel_temp.statistics)'>{{ storage.devices.select_channel_temp.statistics.last_temperature}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2 && (storage.devices.select_channel_temp._self.device_type == 11 || storage.devices.select_channel_temp._self.device_type == 18)'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">Температура</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature!==undefined" ng-class='getColorTemperatureNew(storage.devices.select_channel_temp.statistics)'>{{ storage.devices.select_channel_temp.statistics.last_temperature}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='(storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==22||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==29) && storage.devices.select_channel_temp._self.device_type == 28'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">Температура</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature!==undefined" ng-class='getColorTemperatureNew(storage.devices.select_channel_temp.statistics)'>{{ storage.devices.select_channel_temp.statistics.last_temperature}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-shower icon-device_icon"></span></td>
                                                                        <td class="head-info">Влажность</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_damp!==undefined" ng-class='getColorDamp(storage.devices.select_channel_temp.statistics)'>{{ storage.devices.select_channel_temp.statistics.last_damp}}%</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_damp===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                            <span ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23' class='fa fa-info help help_block_info' title="Значения нормальной влажности от {{storage.devices.select_channel_temp.statistics.last_min_sensor}} до {{storage.devices.select_channel_temp.statistics.last_max_sensor}} %"></span>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-sun-o icon-device_icon"></span></td>
                                                                        <td class="head-info">Освещенность</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_lux!==undefined" >{{ storage.devices.select_channel_temp.statistics.last_lux}} lux</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_lux===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-deaf icon-device_icon"></span></td>
                                                                        <td class="head-info">Шум</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_dB!==undefined" >{{ storage.devices.select_channel_temp.statistics.last_dB}} dB</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_dB===undefined">Неизвестен</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon">CO2</span></td>
                                                                        <td class="head-info">CO2</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_CO2!==undefined" >{{ storage.devices.select_channel_temp.statistics.last_CO2}}</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_CO2===undefined">Неизвестен</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">Температура 1</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature!==undefined" ng-class='getColorTemperature(storage.devices.select_channel_temp.statistics.last_temperature)'>{{ storage.devices.select_channel_temp.statistics.last_temperature}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">Температура 2</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature_2!==undefined" ng-class='getColorTemperature(storage.devices.select_channel_temp.statistics.last_temperature_2)'>{{ storage.devices.select_channel_temp.statistics.last_temperature_2}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature_2===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">t в подающем трубопроводе</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature!==undefined" >{{ storage.devices.select_channel_temp.statistics.last_temperature}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==28'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">t внутри корпуса</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature!==undefined" >{{ storage.devices.select_channel_temp.statistics.last_temperature}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer icon-device_icon"></span></td>
                                                                        <td class="head-info">t в обратном трубопроводе</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature_2!==undefined" >{{ storage.devices.select_channel_temp.statistics.last_temperature_2}}°C</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_temperature_2===undefined">Неизвестна</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-bolt icon-device_icon"></span></td>
                                                                        <td class="head-info">Количество фаз</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_count_phase_1===undefined?storage.devices.select_channel_temp.count_phase:storage.devices.select_channel_temp.statistics.last_count_phase_1}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-bolt icon-device_icon"></span></td>
                                                                        <td class="head-info">Количество фаз</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.count_phase }}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-shield icon-device_icon"></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.security_name}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_state_security?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='showLastStateTamper()'>
                                                        <div    class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_state_tamper?'fa-unlock':'fa-lock'"></span></td>
                                                                        <td class="head-info">Вскрытие корпуса </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_state_tamper?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    
                                                    
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3||(storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11 && getVersionSelectedChannel()==0 )'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_hall_1?'fa-circle':'fa-circle-o'"></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.hall_1_name}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_hall_1?'Нет':'Да'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_hall_2?'fa-circle':'fa-circle-o'"></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.hall_2_name}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_hall_2?'Нет':'Да'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-tint icon-device_icon" style='{{"color:"+storage.color_list.get_color(storage.devices.select_channel_temp.color)}}'></span></td>
                                                                        <td class="head-info">Вода</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ parseWater(storage.devices.select_channel_temp.water)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-dashboard icon-device_icon"></span></td>
                                                                        <td class="head-info">Модель </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.model?storage.devices.select_channel_temp.model:'Неизвестна'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-barcode icon-device_icon"></span></td>
                                                                        <td class="head-info">Заводской номер</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.serial?storage.devices.select_channel_temp.serial:'Неизвестен'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-user-circle icon-device_icon"></span></td>
                                                                        <td class="head-info">№ счета абонента </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.personal_num?storage.devices.select_channel_temp.personal_num:'Неизвестна'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-user-circle icon-device_icon"></span></td>
                                                                        <td class="head-info">№ счета абонента </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.personal_num?storage.devices.select_channel_temp.personal_num:'Неизвестна'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==22'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-user-circle icon-device_icon"></span></td>
                                                                        <td class="head-info">Индивидуальный адрес </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.ia?storage.devices.select_channel_temp.ia:'-'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==30'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-user-circle icon-device_icon"></span></td>
                                                                        <td class="head-info">MAC</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.mac?storage.devices.select_channel_temp.mac:'-'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-user-circle icon-device_icon"></span></td>
                                                                        <td class="head-info">Серийный номер устройства </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.ia?storage.devices.select_channel_temp.ia:'-'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-user-circle icon-device_icon"></span></td>
                                                                        <td class="head-info">Суммарный объем теплоносителя</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_total_heat_carrier_volume?storage.devices.select_channel_temp.statistics.last_total_heat_carrier_volume + 'л':'-'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-user-circle icon-device_icon"></span></td>
                                                                        <td class="head-info">Время наработки</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_working_time_h?storage.devices.select_channel_temp.statistics.last_working_time_h + ' ч':'-'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-user-circle icon-device_icon"></span></td>
                                                                        <td class="head-info">Текущий расход</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_current_coolant_flow||storage.devices.select_channel_temp.statistics.last_current_coolant_flow===0?storage.devices.select_channel_temp.statistics.last_current_coolant_flow + ' л/ч':'-'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-calendar-check-o icon-device_icon"></span></td>
                                                                        <td class="head-info">Поверка до</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ get_dop_info_min(storage.devices.select_channel_temp)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp.type_meter!=3&&storage.devices.select_channel_temp.type_meter!=4&&storage.devices.select_channel_temp.type_meter!=6'>
                                                        <div    class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_state_K&&storage.devices.select_channel_temp.statistics.last_state_K?'fa-lock':'fa-unlock'"></span></td>
                                                                        <td class="head-info">Вскрытие корпуса </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_state_K!==undefined">{{ storage.devices.select_channel_temp.statistics.last_state_K?'Нет':'Да'}}</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_state_K===undefined">Неизвестно</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp.type_meter!=3&&storage.devices.select_channel_temp.type_meter!=4&&storage.devices.select_channel_temp.type_meter!=6'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_state_KK?'fa-square color-vega-crimson':'fa-square-o '"></span></td>
                                                                        <td class="head-info">Клеммная крышка</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_state_KK!==undefined">{{ storage.devices.select_channel_temp.statistics.last_state_KK?'Закрыта':'Вскрыта'}}</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_state_KK===undefined">Неизвестно</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp.relay'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        
                                                                        <td rowspan="2">
                                                                            <span ng-if="!storage.devices.select_channel_temp.statistics.last_relay||storage.devices.select_channel_temp.statistics.last_state_relay===undefined" class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_state_relay?'fa-square color-vega-crimson':'fa-square-o '"></span>
                                                                            <div  ng-if="storage.devices.select_channel_temp._self.device_type!=24&&storage.devices.select_channel_temp.relay&&storage.devices.select_channel_temp.statistics.last_state_relay!==undefined&&command_list_cookie.send_data" class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.statistics.last_state_relay?'btn-success':'btn-danger'" ng-click="control_relay(storage.devices.select_channel_temp.statistics.last_state_relay,storage.devices.select_channel_temp.ia)"><span class="fa fa-power-off icon-device_icon"  ></span></div>
                                                                            <div  ng-if="storage.devices.select_channel_temp._self.device_type==24&&storage.devices.select_channel_temp.relay&&storage.devices.select_channel_temp.statistics.last_state_relay!==undefined&&command_list_cookie.send_data" class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.statistics.last_state_relay?'btn-success':'btn-danger'" ng-click="control_relay(storage.devices.select_channel_temp.statistics.last_state_relay,storage.devices.select_channel_temp.ia,8)"><span class="fa fa-power-off icon-device_icon"  ></span></div>
                                                                        </td>
                                                                        <td class="head-info">Реле</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_state_relay!==undefined">{{ storage.devices.select_channel_temp.statistics.last_state_relay?'Энергия подается':'Подача ограничена'}}</td>
                                                                        <td class="body-info" ng-if="storage.devices.select_channel_temp.statistics.last_state_relay===undefined">Неизвестно</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||(storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8&&storage.devices.select_channel_temp._self.device_type!=17)'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-magnet icon-device_icon" ></span></td>
                                                                        <td class="head-info" style="font-size: 16px; white-space: nowrap">Магнитное воздействие</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_hall_1?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_state_display?'fa-square color-vega-crimson':'fa-square-o '"></span></td>
                                                                        <td class="head-info">Блокировка экрана</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_state_display?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_leaking?'fa-square color-vega-crimson':'fa-square-o '"></span></td>
                                                                        <td class="head-info">Протечка</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_leaking?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_breakthrough?'fa-square color-vega-crimson':'fa-square-o '" ></span></td>
                                                                        <td class="head-info">Прорыв </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_breakthrough?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8&&storage.devices.select_channel_temp._self.device_type!=17'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_in_1?'fa-square color-vega-crimson':'fa-square-o '" ></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.name_sensor_in_1}}</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_in_1?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8&&storage.devices.select_channel_temp._self.device_type!=17'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_in_2?'fa-square color-vega-crimson':'fa-square-o '" ></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.name_sensor_in_2}}</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_in_2?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_danger_1?'fa-square color-vega-crimson':'fa-square-o '" ></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.security_name}}</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_danger_1?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_danger_2?'fa-square color-vega-crimson':'fa-square-o '" ></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.security_name_2}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_danger_2?'Да':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp._self.device_type==2||storage.devices.select_channel_temp._self.device_type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><div class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_out_1?'btn-danger':'btn-success'" ng-click="showModalStateSensorOut(1,!storage.devices.select_channel_temp.statistics.last_sensor_out_1)"><span class="fa fa-edit icon-device_icon"  ></span></div></td>
                                                                        <td class="head-info">Выход 1 </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_out_1?'Вкл':'Выкл'}} </td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp._self.device_type==2||storage.devices.select_channel_temp._self.device_type==20'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><div class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_out_2?'btn-danger':'btn-success'" ng-click="showModalStateSensorOut(2,!storage.devices.select_channel_temp.statistics.last_sensor_out_2)"><span class="fa fa-edit icon-device_icon"  ></span></div></td>
                                                                        <td class="head-info">Выход 2</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_out_2?'Вкл':'Выкл'}} </td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp._self.device_type==2'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-flash icon-device_icon"  ng-class="storage.devices.select_channel_temp.statistics.last_state_energy?'color-vega-crimson':''" ></span></td>
                                                                        <td class="head-info">Состояние питания</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_state_energy?'Вкл':'Выкл'}} </td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8&&storage.devices.select_channel_temp._self.device_type!=17'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><div class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_out_1?'btn-danger':'btn-success'" ng-click="showModalStateSensorOut(1,!storage.devices.select_channel_temp.statistics.last_sensor_out_1)"><span class="fa fa-edit icon-device_icon"  ></span></div></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.name_sensor_out_1}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_out_1?'Вкл':'Выкл'}} </td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8&&storage.devices.select_channel_temp._self.device_type!=17'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><div class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_out_2?'btn-danger':'btn-success'" ng-click="showModalStateSensorOut(2,!storage.devices.select_channel_temp.statistics.last_sensor_out_2)"><span class="fa fa-edit icon-device_icon"  ></span></div></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.name_sensor_out_2}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_out_2?'Вкл':'Выкл'}} </td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div ng-repeat='i in forRange(0,12)' class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==30'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer-half icon-device_icon"></span></td>
                                                                        <td class="head-info"> t{{ i }} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ parseTemperature(storage.devices.select_channel_temp.statistics['last_temperature_num_'+i]) }} </td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div ng-repeat='i in forRange(1,10)' class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==28'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-thermometer-half icon-device_icon"></span></td>
                                                                        <td class="head-info">{{ storage.devices.select_channel_temp['temperature_sensor_name_'+i] }} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics['last_temperature_1wire_'+i] }}°C </td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><div class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_out_1?'btn-danger':'btn-success'" ng-click="showModalStateSensorOut(1,!storage.devices.select_channel_temp.statistics.last_sensor_out_1)"><span class="fa fa-edit icon-device_icon"  ></span></div></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.sensor_name_1}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_out_1?'Вкл':'Выкл'}} </td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><div class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.statistics.last_sensor_out_2?'btn-danger':'btn-success'" ng-click="showModalStateSensorOut(2,!storage.devices.select_channel_temp.statistics.last_sensor_out_2)"><span class="fa fa-edit icon-device_icon"  ></span></div></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.sensor_name_2}} </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sensor_out_2?'Вкл':'Выкл'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="storage.devices.select_channel_temp.statistics.last_type_powered=='external'?'fa-plug':storage.devices.select_channel_temp.statistics.last_type_powered=='battery'?'fa-battery':'fa-times'" ></span></td>
                                                                        <td class="head-info">Питание</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_type_powered=='external'?'Внешнее':storage.devices.select_channel_temp.statistics.last_type_powered=='battery'?'Батарейное':'Неизвестно'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    
                                                    
                                                    
                                                    
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6&&storage.devices.select_channel_temp.statistics.last_ts_rus'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-star icon-device_icon" ></span></td>
                                                                        <td class="head-info">Причина последнего сообщения</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{parseReasonSmart()}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>



                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-battery-{{get_battery(storage.devices.select_channel_temp.statistics.last_charge)}} icon-device_icon"></span></td>
                                                                        <td class="head-info">Заряд АКБ №1</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_charge}}%</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-battery-{{get_battery(storage.devices.select_channel_temp.statistics.last_charge2)}} icon-device_icon"></span></td>
                                                                        <td class="head-info">Заряд АКБ №2</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_charge2}}%</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-low-vision icon-device_icon" ></span></td>
                                                                        <td class="head-info">Запыленность</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{yesOrNo(storage.devices.select_channel_temp.statistics.last_status_fog)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-fire icon-device_icon" ></span></td>
                                                                        <td class="head-info">Пожар</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{yesOrNo(storage.devices.select_channel_temp.statistics.last_status_fire)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-bug icon-device_icon" ></span></td>
                                                                        <td class="head-info">Тест</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{yesOrNo(storage.devices.select_channel_temp.statistics.last_status_test)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-shield icon-device_icon" ></span></td>
                                                                        <td class="head-info">Активность охраны</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{yesOrNo(storage.devices.select_channel_temp.statistics.last_status_guard)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-warning icon-device_icon" ></span></td>
                                                                        <td class="head-info">Неисправность</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{yesOrNo(storage.devices.select_channel_temp.statistics.last_status_faulm)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-bullseye icon-device_icon" ></span></td>
                                                                        <td class="head-info">Тревога</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{yesOrNo(storage.devices.select_channel_temp.statistics.last_status_alarm)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-unlock icon-device_icon" ></span></td>
                                                                        <td class="head-info">Снятие</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{yesOrNo(storage.devices.select_channel_temp.statistics.last_status_detach)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel == 31'>
                                                        <div class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-bell icon-device_icon" ></span></td>
                                                                        <td class="head-info">Общее оповещение</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{yesOrNo(storage.devices.select_channel_temp.statistics.last_status_common)}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>



                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel==23'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-circle icon-device_icon" ></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.security_name}}</td>
                                                                    </tr>
                                                                    <tr ng-if='storage.devices.select_channel_temp.statistics.last_sensor_in_1!==undefined'><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_sensor_in_1?'Закрыт':'Открыт'}}</td></tr>
                                                                    <tr ng-if='storage.devices.select_channel_temp.statistics.last_sensor_in_1===undefined'><td class="body-info">-</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel==23'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-circle icon-device_icon" ></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.security_name_2}}</td>
                                                                    </tr>
                                                                    <tr ng-if='storage.devices.select_channel_temp.statistics.last_sensor_in_2!==undefined'><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_sensor_in_2?'Закрыт':'Открыт'}}</td></tr>
                                                                    <tr ng-if='storage.devices.select_channel_temp.statistics.last_sensor_in_2===undefined'><td class="body-info">-</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel==10&&( (storage.devices.select_channel_temp.statistics.last_ts_rus&&getVersionSelectedChannel()==0) || (storage.devices.select_channel_temp.statistics.last_time_rus&&getVersionSelectedChannel()==1) ) '>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-magnet icon-device_icon" ></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.instrument}}</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_state_sensor_0?'Закрыт':'Открыт'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel==10&&storage.devices.select_channel_temp.statistics.last_time_rus&&getVersionSelectedChannel()==1'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-magnet icon-device_icon" ></span></td>
                                                                        <td class="head-info">{{storage.devices.select_channel_temp.instrument2}}</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{storage.devices.select_channel_temp.statistics.last_state_sensor_1?'Закрыт':'Открыт'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.devices.select_channel_temp.type_channel==6&&storage.devices.select_channel_temp.statistics.last_ts && storage.devices.select_channel_temp._self.device_type!=28'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-magnet icon-device_icon" ></span></td>
                                                                        <td class="head-info">Текущее состояние</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{storage.devices.select_channel_temp.statistics['last_sensor_'+storage.devices.select_channel_temp.num_channel]==1?'Замкнут':'Разомкнут'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-road icon-device_icon"></span></td>
                                                                        <td class="head-info">Движение </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_in_move?'Есть':'Нет'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="fa-plug" ></span></td>
                                                                        <td class="head-info">Питание</td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_status_state}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26'>
                                                        <div    class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa  icon-device_icon" ng-class="fa-lock"></span></td>
                                                                        <td class="head-info">Вскрытие корпуса </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_state_tamper }}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-lightbulb-o icon-device_icon"></span></td>
                                                                        <td class="head-info">Интенсивность освещения </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_led_duty }}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-dashboard icon-device_icon"></span></td>
                                                                        <td class="head-info">Скорость </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_speed!==undefined?storage.devices.select_channel_temp.statistics.last_speed+' КМ/Ч':'-'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"><span class="fa fa-crosshairs icon-device_icon"></span></td>
                                                                        <td class="head-info">Использ. спутников </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_sat_used?storage.devices.select_channel_temp.statistics.last_sat_used:'-'}}</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10||(storage.devices.select_channel_temp.type_channel==11 && getVersionSelectedChannel()==1)'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2"></td>
                                                                        <td class="head-info">Отклонение по вертикали </td>
                                                                    </tr>
                                                                    <tr><td class="body-info">{{ storage.devices.select_channel_temp.statistics.last_angle?storage.devices.select_channel_temp.statistics.last_angle:0}}°</td></tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                        
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                        <div   class="block-info block-info-style-1 padding-left0">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td rowspan="2">
                                                                            <span ng-if="!command_list_cookie.manage_device_appdata" class="fa fa-bell  icon-device_icon" ng-class="storage.devices.select_channel_temp.enable_danger?'color-vega-crimson':''"></span>
                                                                            <div  ng-if="command_list_cookie.manage_device_appdata" class="btn btn-block-info" ng-class="storage.devices.select_channel_temp.enable_danger?'btn-success':'btn-default'" ng-click="editDeviceDangerEnable()"><span class="fa fa-bell icon-device_icon"  ></span></div>
                                                                        </td>
                                                                        <td class="head-info">Уведомления о тревогах</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="body-info">{{ storage.devices.select_channel_temp.enable_danger?'Включено':'Выключено'}}</td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <!-- Управление устройством -->
                                                    <div class="col-xs-12 padding-left0" ></div>
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4&&command_list_cookie.send_data&&storage.devices.select_channel_temp.statistics.last_state_display'>
                                                        <div class="btn btn-success" ng-click="unlock_counter()">Разблокировать счетчик</div>
                                                    </div>
                                                    
                                                    <div class="col-xs-4 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5&&command_list_cookie.send_data&&storage.devices.select_channel_temp.statistics.last_type_powered=="external"'>
                                                        <div class="btn btn-success btn-in-pan" ng-click="control_get_data()">Запросить показания</div>
                                                    </div>
                                                    
                                                    <div class="col-xs-12 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&command_list_cookie.send_data'>
                                                        <div class="btn btn-success btn-in-pan" ng-click="control_get_info_counter_1(storage.devices.select_channel_temp.ia)">Запросить показания</div>
                                                        <div ng-if='storage.devices.select_channel_temp._self.device_type != 24' class="btn btn-success btn-in-pan" ng-click="control_get_info_counter_4(storage.devices.select_channel_temp.ia)">Запросить накопления</div>
                                                        <div ng-if='storage.devices.select_channel_temp._self.device_type == 24' class="btn btn-success btn-in-pan" ng-click="showModalCommands(5)">Запросить накопления</div>
                                                        <div class="btn btn-success btn-in-pan" ng-click="control_get_info_counter_2(storage.devices.select_channel_temp.ia)">Запросить мгновенные</div>
                                                        <div ng-if='storage.devices.select_channel_temp._self.device_type == 24' class='btn btn-info btn-in-pan' ng-click = 'toggle_sticky.commands = !toggle_sticky.commands' ng-class='toggle_sticky.commands?"active":""' title='{{toggle_sticky.commands?"Скрыть":"Показать"}} все команды'><span class='fa fa-bars'></span></div>
                                                        <div ng-if='storage.devices.select_channel_temp._self.device_type == 12 && storage.devices.select_channel_temp.type_meter == 6 && getVersionSelectedChannel()==0' class='btn btn-info btn-in-pan' ng-click = 'toggle_sticky.commands = !toggle_sticky.commands' ng-class='toggle_sticky.commands?"active":""' title='{{toggle_sticky.commands?"Скрыть":"Показать"}} все команды'><span class='fa fa-bars'></span></div>
                                                    </div>
                                                    <div class="col-xs-12 padding-left0" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26&&command_list_cookie.send_data'>
                                                        <div ng-if='storage.devices.select_channel_temp._self.device_type == 26' class="btn btn-success btn-in-pan" ng-click="showModalCommands(170)">Регулировка интенсивности освещения</div>
                                                    </div>
                                                    <div style="margin-top: 1.5rem; margin-bottom: 1rem;" ng-show='toggle_sticky.commands==true&&storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&command_list_cookie.send_data&&(storage.devices.select_channel_temp._self.device_type == 24 || (storage.devices.select_channel_temp._self.device_type == 12 && storage.devices.select_channel_temp.type_meter == 6 && getVersionSelectedChannel()==0))' class="col-xs-12 padding-left0" >
                                                        <select style="max-width: 56.5rem;" ng-model='multy_command' ng-change='select_multy_command()'  class='form-control'>
                                                            <option ng-value='0' ng-show='storage.devices.select_channel_temp._self.device_type == 24'>Выбрать команду</option>
                                                            <option ng-value='1'  >Запросить показания</option>
                                                            <option ng-value='2'  >Запросить накопления</option>
                                                            <option ng-value='3' >Запросить мгновенные</option>
                                                            <option ng-value='4' >Включить реле</option>
                                                            <option ng-value='5' >Выключить реле</option>
                                                            <option ng-value='6' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос списка специальных дней</option>
                                                            <option ng-value='7' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос тарифного расписания</option>
                                                            <option ng-value='8' ng-show='storage.devices.select_channel_temp._self.device_type == 24 && getVersionSelectedChannel() < 1 ' >Запрос конфигурации электросчётчика</option>
                                                            <option ng-value='9' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос параметров индикации</option>
                                                            <option ng-value='10' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос расширенной информации об электросчётчике</option>
                                                            <option ng-value='11' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос режима функционирования журнала фиксаций превышения мощности</option>
                                                            <option ng-value='12' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос режима функционирования реле управления нагрузкой</option>
                                                            <option ng-value='13' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос архива накоплений энергии по 4 тарифам за 36 последние месяцев</option>

                                                            <option ng-value='14' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос архива накоплений энергии по 4 тарифам за 128 последних суток</option>
                                                            <option ng-value='15' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос 30-минутного среза активной мощности за сутки</option>
                                                            <option ng-value='16' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запрос журнала</option>

                                                            <option ng-value='17' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запись адреса установки счётчика (в разработке)</option>
                                                            <option ng-value='18' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запись параметров функционирования журнала превышения установленной активной мощности (в разработке)</option>
                                                            <option ng-value='19' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Запись режима функционирования реле управления нагрузкой (в разработке)</option>
                                                            <option ng-value='20' ng-show='storage.devices.select_channel_temp._self.device_type == 24' >Команда установки времени (в разработке)</option>

                                                        </select>
                                                    </div>
                                                    <!-- Выбор периода времени данных -->
                                                    <div  class="col-sm-12 padding0" >
                                                        <div class="block-info block-info-style-2" style="padding-top: 1rem">
                                                            <table>
                                                                <tbody>
                                                                    <tr>
                                                                        <td ><span style="padding-top: 0;cursor: help" title="По времени сервера" class="fa fa-calendar icon-device_icon"></span></td>
                                                                        <td class="head-info">Период <div style="padding-left: 5px" id="reportrange" class="pull-right pointer">
                                                                            <span></span> <b class="caret"></b>
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <!-- Сводка данных / статистика -->
                                                    <div ng-show="toggle_sticky.summary_info" class="col-sm-12 col-lg-6 padding0 toggle_sticky">
                                                        <div  class="stick stick-summary-info">
                                                            <div class="cell cell-content cell-low" style="margin:0;padding: 0; background: transparent; border: none; box-shadow: none">
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%; margin-bottom: 0;padding-bottom: 0">
                                                                    <div class="data_null" ng-show="!(storage.devices.get_history_select_channel(storage.date_range).length>0)">
                                                                        <span class="fa fa-ban help" title ="За выбранный период показания не найдены"></span>
                                                                        <p></p>
                                                                    </div>
                                                                    <table ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0 && (storage.devices.select_channel_temp.statistics.last_ts||storage.devices.select_channel_temp.statistics.last_time)" class="table text-left">
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'><td>Показания на начало периода</td><td ng-if="storage.devices.select_channel_temp.statistics.start_value!==undefined">{{my_converter.round_size_str(storage.devices.select_channel_temp.statistics.start_value,4)}} кВт⋅ч</td><td ng-if="storage.devices.select_channel_temp.statistics.start_value===undefined">-</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'><td>Показания на конец периода</td><td ng-if="storage.devices.select_channel_temp.statistics.end_value!==undefined">{{my_converter.round_size_str(storage.devices.select_channel_temp.statistics.end_value,4)}} кВт⋅ч</td><td ng-if="storage.devices.select_channel_temp.statistics.end_value===undefined">-</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'><td>Потреблено</td><td ng-if="!isNaN(storage.devices.select_channel_temp.statistics.consumed)&&storage.devices.select_channel_temp.statistics.consumed!==undefined&&storage.devices.select_channel_temp.statistics.consumed>=0">{{my_converter.round_size_str(storage.devices.select_channel_temp.statistics.consumed,4)}} кВт⋅ч</td><td ng-if="isNaN(storage.devices.select_channel_temp.statistics.consumed)||storage.devices.select_channel_temp.statistics.consumed===undefined||storage.devices.select_channel_temp.statistics.consumed<0">-</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'><td>Средняя температура </td><td ng-if="validAvgTemperatureSelectedDevice()">{{storage.devices.select_channel_temp.statistics.avgTemperatur}}°</td><td ng-if="!validAvgTemperatureSelectedDevice()">-</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'><td>Количество событий</td><td>{{storage.devices.select_channel_temp.statistics.count_1}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'><td>Количество тревог</td><td>{{storage.devices.select_channel_temp.statistics.count_danger}}</td></tr>
                                                                            
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'><td>Показания на начало периода</td><td>{{my_converter.round_size_str(storage.devices.select_channel_temp.statistics.start_sensorKB,4)}} куб. м</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'><td>Показания на конец периода</td><td>{{my_converter.round_size_str(storage.devices.select_channel_temp.statistics.end_sensorKB,4)}} куб. м</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'><td>Потреблено</td><td>{{my_converter.round_size_str( storage.devices.select_channel_temp.statistics.consumed,4)}} куб. м</td></tr>

                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9'><td>Показания на начало периода</td><td ng-if="storage.devices.select_channel_temp.statistics.start_sensor!==undefined">{{my_converter.round_size_str(storage.devices.select_channel_temp.statistics.start_sensor,4)}} кВт⋅ч</td><td ng-if="storage.devices.select_channel_temp.statistics.start_sensor===undefined">-</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9'><td>Показания на конец периода</td><td ng-if="storage.devices.select_channel_temp.statistics.end_sensor!==undefined">{{my_converter.round_size_str(storage.devices.select_channel_temp.statistics.end_sensor,4)}} кВт⋅ч</td><td ng-if="storage.devices.select_channel_temp.statistics.end_sensor===undefined">-</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9'><td>Потреблено</td><td ng-if="!isNaN(storage.devices.select_channel_temp.statistics.consumed)&&storage.devices.select_channel_temp.statistics.consumed!==undefined&&storage.devices.select_channel_temp.statistics.consumed>=0">{{my_converter.round_size_str( storage.devices.select_channel_temp.statistics.consumed,4)}} кВт⋅ч</td><td ng-if="isNaN(storage.devices.select_channel_temp.statistics.consumed)||storage.devices.select_channel_temp.statistics.consumed===undefined||storage.devices.select_channel_temp.statistics.consumed<0">-</td></tr>

                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1'><td>Показания на начало периода</td><td>{{paramIntToDisplay(storage.devices.select_channel_temp.statistics.start_sensor.toString())+' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1'><td>Показания на конец периода</td><td> {{paramIntToDisplay(storage.devices.select_channel_temp.statistics.end_sensor.toString())+' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1'><td>Потреблено</td><td>{{paramIntToDisplay(storage.devices.select_channel_temp.statistics.consumed.toString())+' '+storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'><td>Зафиксировано тревог</td><td>{{storage.devices.select_channel_temp.statistics.count_danger}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'><td>Получено показаний </td><td>{{storage.devices.select_channel_temp.statistics.count}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'><td>Получено сообщений </td><td>{{storage.devices.select_channel_temp.statistics.count_all}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'><td>Получено показаний </td><td>{{storage.devices.select_channel_temp.statistics.count}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'><td>Зафиксировано тревог </td><td>{{storage.devices.select_channel_temp.statistics.count_danger}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3'><td>Средняя температура </td><td>{{!isNaN(storage.devices.select_channel_temp.statistics.avgTemperatur)?storage.devices.select_channel_temp.statistics.avgTemperatur:'-'}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5'><td>Среднее значение {{storage.devices.select_channel_temp.instrument}} </td><td>{{get_value4_20mA(storage.devices.select_channel_temp.statistics.avgSensorTP)}} {{storage.devices.select_channel_temp.unit}} </td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6'><td>Количество сообщений</td><td>{{storage.devices.select_channel_temp.statistics.count}}</td></tr>
                                                                        <tr ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6'><td>Количество незапланированных сообщений </td><td>{{storage.devices.select_channel_temp.statistics.count_danger}}</td></tr>
                                                                    </table>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <!-- Панель управления данными от устройства -->
                                                    <div  ng-show="toggle_sticky.general_info&&(storage.devices.select_channel_temp.statistics.last_ts||storage.devices.select_channel_temp.statistics.last_time)&&(storage.devices.get_history_select_channel(storage.date_range).length>0)" class="col-sm-12 padding0 toggle_sticky myborder" >
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7' ng-class="toggle_sticky.data_event?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_event')||scrollToEl('data_event')" title="Текущее состояние"><span class="fa fa-database"></span> Состояния </div>
                        
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_info?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_info')||scrollToEl('data_info')" title="Информация о счетчике блок 1"><span class="fa fa-info-circle"></span> Информация 1 </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_info2?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_info2')||scrollToEl('data_info2')" title="Информация о счетчике блок 2"><span class="fa fa-info-circle"></span> Информация 2 </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_jp?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_jp')||scrollToEl('data_jp')" title="Режим функционирования журнала фиксаций превышения мощности"><span class="fa fa-server"></span> Режимы №11</div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_rl?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_rl')||scrollToEl('data_rl')" title="Режим функционирования реле управления нагрузкой"><span class="fa fa-server"></span> Режимы №12 </div>
                        
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9' ng-class="toggle_sticky.data_energy?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_energy')||scrollToEl('data_energy')" title="Накопленная энергия"><span class="fa fa-database"></span> Накопления </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_energy_archive?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_energy_archive')||scrollToEl('data_energy_archive')" title="Архив накопленной энергии"><span class="fa fa-archive"></span> Архив </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_slices?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_slices')||scrollToEl('data_slices')" title="30-ти минутные срезы активной мощности"><span class="fa fa-archive"></span> Срезы P </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_journals?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_journals')||scrollToEl('data_journals')" title="Журналы"><span class="fa fa-archive"></span> Журналы </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==12' ng-class="toggle_sticky.data_instant?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_instant')||scrollToEl('data_instant')" title="Мгновенные значения"><span class="fa fa-database"></span> Мгновенные </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==27' ng-class="toggle_sticky.data_instant?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_instant')||scrollToEl('data_instant')" title="Мгновенные значения"><span class="fa fa-database"></span> Мгновенные </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_instant?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_instant')||scrollToEl('data_instant')" title="Мгновенные значения блок 1"><span class="fa fa-database"></span> Мгновенные №1</div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_instant2?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_instant2')||scrollToEl('data_instant2')" title="Мгновенные значения блок 2"><span class="fa fa-database"></span> Мгновенные №2</div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.devices.select_channel_temp._self.device_type==2||storage.devices.select_channel_temp._self.device_type==1||storage.devices.select_channel_temp._self.device_type==18||storage.devices.select_channel_temp._self.device_type==11||storage.devices.select_channel_temp._self.device_type==20||storage.devices.select_channel_temp._self.device_type==21||storage.devices.select_channel_temp._self.device_type==3||storage.devices.select_channel_temp._self.device_type==28||storage.devices.select_channel_temp._self.device_type==31' ng-class="toggle_sticky.data_history?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_history')||scrollToEl('data_history')" title="Активность"><span class="fa fa-database"></span> Активность </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_schedule?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_schedule')||scrollToEl('data_schedule')" title="Тарифное расписание"><span class="fa fa-calendar"></span>  Расписание</div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_indication?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_indication')||scrollToEl('data_indication')" title="Циклическая индикация"><span class="fa fa-braille"></span>  Индикация</div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_days?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_days')||scrollToEl('data_days')" title="Список специальных дней"><span class="fa fa-calendar"></span>  Спец. Дни</div>
                        
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_power_profile?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_power_profile')||reload_chart_power_profile()||scrollToEl('chart_power_profile')" title="Профиль {{getTextNamePowerProfile(storage.devices.select_channel_temp.type_meter)}}"><span class="fa fa-line-chart"></span> {{getTextNamePowerProfile(storage.devices.select_channel_temp.type_meter,2)}}</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_consum_v4?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_consum_v4')||reload_charts_consum_v4()||scrollToEl('chart_consum_v4')" title="Потребление"><span class="fa fa-line-chart"></span> Потребление</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_consum_v5?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_consum_v5')||reload_charts_consum_v5()||scrollToEl('chart_consum_v5')" title="Потребление"><span class="fa fa-line-chart"></span> Потребление</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||( storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5&&getVersionSelectedChannel()==0)||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_consum1?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_consum1')||reload_charts1()||scrollToEl('chart_consum1')" title="График показаний"><span class="fa fa-area-chart"></span>Показания</div>
                                                        <div ng-if='showChartDangersAll()' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_consum_danger?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_consum_danger')||reload_charts_danger()||scrollToEl('chart_consum_danger')" title="График тревог"><span class="fa fa-area-chart"></span>Тревоги</div>
                                                        
                                                        <div ng-if='showChartDangersSi21_22rev3()' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_consum_danger?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_consum_danger')||reload_charts_danger_4()||scrollToEl('chart_consum_danger')" title="График тревог"><span class="fa fa-area-chart"></span>Тревоги</div>
                        
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_consum_danger?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_consum_danger')||reload_charts_danger_4()||scrollToEl('chart_consum_danger')" title="График событий"><span class="fa fa-area-chart"></span>События</div>
                                                        <div ng-if='showChartsTemperature()' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_consum4?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_consum4')||reload_charts4()||scrollToEl('chart_consum4')"><span class="fa fa-line-chart" title="График температуры {{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5?'устройства':''}}"></span>Температура</div>
                                                        <div ng-if='storage.devices.select_channel_temp._self.device_type==28&&storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==22' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_consum4?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_consum4')||reload_charts4()||scrollToEl('chart_consum4')"><span class="fa fa-line-chart" title="График температуры {{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5?'устройства':''}}"></span>Температура</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_temperature?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_temperature')||reload_chart_temperature()||scrollToEl('chart_temperature')"><span class="fa fa-line-chart" title="График температуры "></span>Температура</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==28' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_temperature?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_temperature')||reload_chart_temperature()||scrollToEl('chart_temperature')"><span class="fa fa-line-chart" title="График температуры "></span>Температура</div>
                                                        
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_temperature?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_temperature')||reload_chart_temperature_multi()||scrollToEl('chart_temperature')"><span class="fa fa-line-chart" title="График температуры "></span>Температура</div>
                        
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3&&getVersionSelectedChannel()==1' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_temperature_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_temperature_new')||reload_chart_temperature_new()||scrollToEl('chart_temperature_new')"><span class="fa fa-line-chart" title="График температуры "></span>Температура</div>
                                                        <div ng-if='(storage.devices.select_channel_temp._self.device_type==11 || storage.devices.select_channel_temp._self.device_type==18)&&getVersionSelectedChannelNumber()>=2' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_temperature_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_temperature_new')||reload_chart_temperature_new()||scrollToEl('chart_temperature_new')"><span class="fa fa-line-chart" title="График температуры "></span>Температура</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_temperature_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_temperature_new')||reload_chart_temperature_new()||scrollToEl('chart_temperature_new')"><span class="fa fa-line-chart" title="График температуры "></span>Температура</div>
                        
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_temperature_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_temperature_new')||reload_chart_temperature_new()||scrollToEl('chart_temperature_new')"><span class="fa fa-line-chart" title="График температуры "></span>Температура</div>
                        
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_damp_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_damp_new')||reload_chart_damp_new()||scrollToEl('chart_damp_new')"><span class="fa fa-line-chart" title="График влажности "></span>Влажность</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_lux_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_lux_new')||reload_chart_lux_new()||scrollToEl('chart_lux_new')"><span class="fa fa-line-chart" title="График освещенности"></span>Освещенность</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_dB_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_dB_new')||reload_chart_dB_new()||scrollToEl('chart_dB_new')"><span class="fa fa-line-chart" title="График шума "></span>Шум</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_CO2_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_CO2_new')||reload_chart_CO2_new()||scrollToEl('chart_CO2_new')"><span class="fa fa-line-chart" title="График CO2 "></span>CO2</div>
                        
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5&&getVersionSelectedChannel()==1' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_sensor_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_sensor_new')||reload_chart_sensor_new()||scrollToEl('chart_sensor_new')"><span class="fa fa-area-chart" title="График Показаний "></span>Показания</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==29' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_sensor_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_sensor_new')||reload_chart_sensor_new(29)||scrollToEl('chart_sensor_new')"><span class="fa fa-area-chart" title="График Показаний "></span>Показания</div>
                                                        <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_sensor_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_sensor_new')||reload_chart_sensor_new(23)||scrollToEl('chart_sensor_new')"><span class="fa fa-area-chart" title="График влажности "></span>Влажность</div>
                        
                                                        <!-- <div ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' class="btn bt-head-panel my_animated" ng-class="toggle_sticky.chart_sensor_new?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('chart_sensor_new')||reload_chart_sensor_new(25)||scrollToEl('chart_sensor_new')"><span class="fa fa-area-chart" title="График влажности "></span>Влажность</div> -->
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==30' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="Данные"><span class="fa fa-database"></span> Данные </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="Данные"><span class="fa fa-database"></span> Данные </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==28' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="Данные"><span class="fa fa-database"></span> Данные </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==29' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="Данные"><span class="fa fa-database"></span> Данные </div>
                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2 && storage.devices.select_channel_temp._self.device_type != 28' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="Тревоги"><span class="fa fa-warning"></span> Тревоги </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2 && storage.devices.select_channel_temp._self.device_type == 28' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="Срабатывания"><span class="fa fa-warning"></span> Срабатывания </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="История"><span class="fa fa-database"></span> История </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==22' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="История"><span class="fa fa-database"></span> История </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="История"><span class="fa fa-database"></span> История </div>
                                                        
                                                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10' ng-class="toggle_sticky.map?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('map')||scrollToEl('map')" title="Карта"><span class="fa fa-map"></span> Карта </div>
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26' ng-class="toggle_sticky.map?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('map')||scrollToEl('map')" title="Карта"><span class="fa fa-map"></span> Карта </div>
                                                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="История"><span class="fa fa-truck"></span> Перевозка </div>
                                                        
                                                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26' ng-class="toggle_sticky.data?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data')||scrollToEl('data')" title="Данные"><span class="fa fa-database"></span> Данные </div>
                                                        
                                                        <div class="btn bt-head-panel my_animated" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11' ng-class="toggle_sticky.data_history?'bt-head-panel-active':''" ng-click="toggle_sticky.toogle('data_history')||scrollToEl('data_history')" title="Отчет о перевозке"><span class="fa fa-truck"></span> Отклонения </div>
                                                    </div>
                                                    <!-- Карта -->
                                                    <div ng-class="toggle_sticky.map?'zoomIn animated':''" ng-show="(storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26)&&toggle_sticky.map&&storage.devices.get_history_select_channel(storage.date_range).length>0&&(storage.devices.select_channel_temp.statistics.last_ts||storage.devices.select_channel_temp.statistics.last_time)" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div   class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%; padding: 0">
                                                                    <div ng-show='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26' id="map-container"  class="col-sm-12 padding0 toggle_sticky ">
                                                                        <div class='btn-group btn-group-map'>
                                                                            <button class='btn btn-default' ng-class="mapMode==='last'||!mapMode?'active':''" ng-disabled="!checkButtonMap('last')" ng-click="selectMapMode('last')">Последнее</button>
                                                                            <button class='btn btn-default' ng-class="mapMode==='all'?'active':''" ng-disabled="!checkButtonMap('all')" ng-click="selectMapMode('all')">Все</button>
                                                                            <button class='btn btn-default' ng-class="mapMode==='track'?'active':''" ng-disabled="!checkButtonMap('track')" ng-click="selectMapMode('track')">Трек</button>
                                                                        </div>
                                                                        <leaflet tiles='tiles' id="map" maxBounds="maxBounds" controls="controls"   events="all" paths="paths"   decorations= 'decorations' markers="markers" width="100%" height="400" defaults="mydefaults" dragmap>
                                                                        </leaflet>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <!-- Контейнеры данных -->
                                                    <!-- Контейнеры данных : графики -->
                                                    <div ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum?'zoomIn animated':''" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1' ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum" id="chart_consum" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div   class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell">График потребления</h3><div ng-click="reload_charts()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button  ng-click="toggle_sticky.chart_consum=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_conn?'zoomIn animated':''" ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_conn" id="chart_conn" class="col-sm-12 padding0 toggle_sticky">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell">График связи</h3><div ng-click="reload_charts2()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_conn=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                        <div id="container2" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.select_channel_temp.statistics.arr_power_profile.length>0&&toggle_sticky.chart_power_profile?'zoomIn animated':''" ng-show="storage.devices.select_channel_temp.statistics.arr_power_profile.length>0&&toggle_sticky.chart_power_profile" id="chart_power_profile" class="col-sm-12 padding0 toggle_sticky">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell">Профиль {{getTextNamePowerProfile(storage.devices.select_channel_temp.type_meter)}}</h3><div ng-click="reload_chart_power_profile()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_power_profile=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                        <div id="container_power_profile" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.select_channel_temp.statistics.arr_value_consum_v4.length>0&&toggle_sticky.chart_consum_v4?'zoomIn animated':''" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9' ng-show="storage.devices.select_channel_temp.statistics.arr_value_consum_v4.length>0&&toggle_sticky.chart_consum_v4" id="chart_consum_v4" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div   class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content" ><h3 class="h3-title-cell" title="По времени сервера">График потребления</h3><div ng-click="reload_charts_consum_v4()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button  ng-click="toggle_sticky.chart_consum_v4=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_consum_v4" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-disabled='storage.devices.select_channel_temp.statistics.arr_value_consum_v4.length>0' ng-class="storage.devices.select_channel_temp.statistics.arr_value_consum_v4.length>0&&toggle_sticky.chart_consum_v4?'zoomIn animated':''" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7' ng-show="storage.devices.select_channel_temp.statistics.arr_value_consum_v4.length>0&&toggle_sticky.chart_consum_v4" id="chart_consum_v4" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div   class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content" ><h3 class="h3-title-cell" title="По времени оконечного устройства">График потребления</h3><div ng-click="reload_charts_consum_v4()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button  ng-click="toggle_sticky.chart_consum_v4=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_consum_v4" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.select_channel_temp.statistics.chart.length>0&&toggle_sticky.chart_consum_v5?'zoomIn animated':''" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8' ng-show="storage.devices.select_channel_temp.statistics.chart.length>0&&toggle_sticky.chart_consum_v5" id="chart_consum_v5" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div   class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content" ><h3 class="h3-title-cell" title="По времени оконечного устройства">График потребления</h3><div ng-click="reload_charts_consum_v5()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button  ng-click="toggle_sticky.chart_consum_v5=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_consum_v5" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum1?'zoomIn animated':''" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20' id="chart_consum1" ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum1" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title="{{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8?'По времени оконечного устройства':'По времени сервера'}}">График показаний </h3><div ng-click="reload_charts1()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_consum1=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container1" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum_danger?'zoomIn animated':''" ng-if='showChartDangersSi21_22rev3()' id="chart_consum_danger" ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum_danger" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title="По времени сервера">График тревог </h3><div ng-click="reload_charts_danger_4()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_consum_danger=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_danger_4" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum_danger?'zoomIn animated':''" ng-if='showChartDangersAll()' id="chart_consum_danger" ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum_danger" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title="По времени сервера">График тревог </h3><div ng-click="reload_charts_danger()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_consum_danger=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_danger" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum_danger?'zoomIn animated':''" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26' id="chart_consum_danger" ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum_danger" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title="По времени сервера">График событий </h3><div ng-click="reload_charts_danger_4()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_consum_danger=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_danger_4" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum_danger?'zoomIn animated':''" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25' id="chart_consum_danger" ng-show="storage.devices.select_channel_temp.statistics.arr_value_4.length>0&&toggle_sticky.chart_consum_danger" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title="По времени оконечного устройства">График событий </h3><div ng-click="reload_charts_danger_4()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_consum_danger=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_danger_4" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_temperature?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_temperature" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11" id="chart_temperature" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График температуры </h3><div ng-click="reload_chart_temperature()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_temperature=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_temperature" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_temperature?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_temperature" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==28" id="chart_temperature" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График температуры </h3><div ng-click="reload_chart_temperature()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_temperature=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_temperature" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_temperature?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_temperature" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20" id="chart_temperature" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График температуры </h3><div ng-click="reload_chart_temperature_multi()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_temperature=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_temperature_multi" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_temperature_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_temperature_new" ng-if="(storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3&&getVersionSelectedChannel()==1)||storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23" id="chart_temperature_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График температуры </h3><div ng-click="reload_chart_temperature_new()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_temperature_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_temperature_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_temperature_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_temperature_new" ng-if="(storage.devices.select_channel_temp._self.device_type==11 || storage.devices.select_channel_temp._self.device_type==18)&&getVersionSelectedChannelNumber()>=2" id="chart_temperature_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График температуры </h3><div ng-click="reload_chart_temperature_new()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_temperature_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_temperature_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_temperature_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_temperature_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25" id="chart_temperature_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График температуры </h3><div ng-click="reload_chart_temperature_new()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_temperature_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_temperature_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_damp_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_damp_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25" id="chart_damp_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График влажности </h3><div ng-click="reload_chart_damp_new()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_damp_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_damp_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_lux_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_lux_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25" id="chart_lux_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График освещенности </h3><div ng-click="reload_chart_lux_new()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_lux_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_lux_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_dB_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_dB_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25" id="chart_dB_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График шума </h3><div ng-click="reload_chart_dB_new()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_dB_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_dB_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_CO2_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_CO2_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25" id="chart_CO2_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График CO2 </h3><div ng-click="reload_chart_CO2_new()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_CO2_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_CO2_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_sensor_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_sensor_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5&&getVersionSelectedChannel()==1" id="chart_sensor_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График показаний</h3><div ng-click="reload_chart_sensor_new()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_sensor_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_sensor_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_sensor_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_sensor_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==29" id="chart_sensor_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График показаний</h3><div ng-click="reload_chart_sensor_new(29)" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_sensor_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_sensor_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_sensor_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_sensor_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23" id="chart_sensor_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График влажности</h3><div ng-click="reload_chart_sensor_new(23)" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_sensor_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_sensor_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="toggle_sticky.chart_sensor_new?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_sensor_new" ng-if="storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25" id="chart_sensor_new" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График влажности</h3><div ng-click="reload_chart_sensor_new(25)" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_sensor_new=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container_chart_sensor_new" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum4?'zoomIn animated':''"  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.chart_consum4&&showChartsTemperature()" id="chart_consum4" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-60">
                                                            <div class="cell cell-content">
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" style='cursor: help' title='По времени оконечного устройства'>График температуры {{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5?'устройства':''}}</h3><div ng-click="reload_charts4()" style="position: absolute;top:20px;right: 40px" class="btn"><span class="glyphicon glyphicon-refresh"></span></div><button type="button" class="close" ng-click="toggle_sticky.chart_consum4=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <div id="container4" class="container_charts" ></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <!-- Контейнеры данных : таблицы -->
                                                    <div  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data" ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data?'zoomIn animated':''" id="data" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==28'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryPulse','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table class="table table-fixed text-left" id="HistoryPulse">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="15">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Заряд</th>
                                                                                <th>Причина</th>
                                                                                <th>t SH-02°</th>
                                                                                <th>t1°</th>
                                                                                <th>t2°</th>
                                                                                <th>t3°</th>
                                                                                <th>t4°</th>
                                                                                <th>t5°</th>
                                                                                <th>t6°</th>
                                                                                <th>t7°</th>
                                                                                <th>t8°</th>
                                                                                <th>t9°</th>
                                                                                <th>t10°</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,1] | orderBy:'-time' | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td>{{parseReason(history.reason,28,storage.devices.select_channel_temp)}}</td>
                                                                                <td>{{history.temperature}}</td>
                                                                                <td>{{history.temperature_1wire_1}}</td>
                                                                                <td>{{history.temperature_1wire_2}}</td>
                                                                                <td>{{history.temperature_1wire_3}}</td>
                                                                                <td>{{history.temperature_1wire_4}}</td>
                                                                                <td>{{history.temperature_1wire_5}}</td>
                                                                                <td>{{history.temperature_1wire_6}}</td>
                                                                                <td>{{history.temperature_1wire_7}}</td>
                                                                                <td>{{history.temperature_1wire_8}}</td>
                                                                                <td>{{history.temperature_1wire_9}}</td>
                                                                                <td>{{history.temperature_1wire_10}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==30'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryPulse','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table class="table table-fixed text-left" id="HistoryPulse">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="15">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>мВ</th>
                                                                                <th>rssi</th>
                                                                                <th>Счетчик</th>
                                                                                <th>t0°</th>
                                                                                <th>t1°</th>
                                                                                <th>t2°</th>
                                                                                <th>t3°</th>
                                                                                <th>t4°</th>
                                                                                <th>t5°</th>
                                                                                <th>t6°</th>
                                                                                <th>t7°</th>
                                                                                <th>t8°</th>
                                                                                <th>t9°</th>
                                                                                <th>t10°</th>
                                                                                <th>t11°</th>
                                                                                <th>t12°</th>
                                                                                <th>FCNT</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,1,storage.devices.select_channel_temp] | orderBy:'-time' | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px'  title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{history.mv/1000}}</td>
                                                                                <td>{{history.rssi_sensor}}</td>
                                                                                <td>{{history.num_package}}</td>
                                                                                    
                                                                                <td>{{parseTemperature(history.temperature_num_0)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_1)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_2)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_3)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_4)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_5)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_6)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_7)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_8)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_9)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_10)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_11)}}</td>
                                                                                <td>{{parseTemperature(history.temperature_num_12)}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==29'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryPulse','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                        <table class="table table-fixed text-left" id="HistoryPulse">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="5">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Заряд</th>
                                                                                <th>Причина</th>
                                                                                <th>t SH-02°</th>
                                                                                <th>Показания, {{storage.devices.select_channel_temp.unit}}</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,1] | orderBy:'-time' | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td>{{parseReason(history.reason,28,storage.devices.select_channel_temp)}}</td>
                                                                                <td>{{history.temperature}}</td>
                                                                                <td>{{get_value0_21mB(history.sensor)}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1&&getActiveDevice().device_type!=3&&getActiveDevice().device_type!=11&&getActiveDevice().device_type!=18'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryPulse','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                        <table ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1' class="table table-fixed text-left" id="HistoryPulse">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="5">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время сервера</th>
                                                                                
                                                                                <th>Дата</th>
                                                                                <th>Показания</th>
                                                                                <th>Заряд</th>
                                                                                <th>Температура</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time' | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время сервера">{{history.get_ts()}}</td> 
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{history.get_value(storage.devices.select_channel_temp.init_value,storage.devices.select_channel_temp.division,storage.devices.select_channel_temp.kt)}} {{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td>{{history.temperature}}°</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1&&(getActiveDevice().device_type==11||getActiveDevice().device_type==18)'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryPulse','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">

                                                                        <table ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1' class="table table-fixed text-left" id="HistoryPulse">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="5">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время сервера</th>
                                                                                <th>Дата</th>
                                                                                <th>Показания</th>
                                                                                <th>Заряд</th>
                                                                                <th>Температура</th>
                                                                                <th>Причина</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time' | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время сервера">{{history.get_ts()}}</td>
                                                                                
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{history.get_value(storage.devices.select_channel_temp.init_value,storage.devices.select_channel_temp.division,storage.devices.select_channel_temp.kt)}} {{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td>{{history.temperature}}°</td>
                                                                                <td>{{parseReason(history.reason,'si21_22rev3',storage.devices.select_channel_temp)}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==1&&getActiveDevice().device_type==3'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryPulseSi13','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%" ng-if='getVersionSelectedChannel()==0'>
                                                                        <table class="table table-fixed text-left" id="HistoryPulseSi13">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="5">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>Показания</th><th>T C°</th><th>Тип пакета</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data&&!history.time' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-ts' | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время сервера" >{{history.get_ts()}}</td>
                                                                                <td>{{history.get_value(storage.devices.select_channel_temp.init_value,storage.devices.select_channel_temp.division,storage.devices.select_channel_temp.kt)}} {{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}</td>
                                                                                <td>{{history.temperature||history.temperature==='0'||history.temperature===0?history.temperature:'-'}}</td>
                                                                                <td>{{history.type==1?'Запланированный':history.type==2?'Тревога':'ERROR'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%" ng-if='getVersionSelectedChannel()==1'>
                                                                        <table class="table table-fixed text-left" id="HistoryPulseSi13">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="5">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>Показания</th><th>T C°</th><th>Тип пакета</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data&&history.time' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time' | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время оконечного устройства" >{{history.get_time()}}</td>
                                                                                <td>{{history.get_value(storage.devices.select_channel_temp.init_value,storage.devices.select_channel_temp.division,storage.devices.select_channel_temp.kt)}} {{storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).unit}}</td>
                                                                                <td>{{history.temperature||history.temperature==='0'||history.temperature===0?history.temperature:'-'}}</td>
                                                                                <td>{{history.type==1?'Запланированный':history.type==2?'Тревога':'ERROR'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8&&storage.devices.select_channel_temp._self.device_type!=17'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDataGM','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                        <table  class="table table-fixed text-left" id="HistoryDataGM">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="12">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Показания</th>
                                                                                <th>Причина</th>
                                                                                <th>{{storage.devices.select_channel_temp.name_sensor_in_1}}</th>
                                                                                <th>{{storage.devices.select_channel_temp.name_sensor_in_2}}</th>
                                                                                <th>{{storage.devices.select_channel_temp.name_sensor_out_1}}</th>
                                                                                <th>{{storage.devices.select_channel_temp.name_sensor_out_2}}</th>
                                                                                <th>Магнитное воздействие</th>
                                                                                <th>Вскрытие корпуса</th>
                                                                                <th>Заряд</th>
                                                                                <th>Температура</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-class="history.reason!=0?'dangerHistory':''" ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time' | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{ my_converter.round_size_str(history.sensor_rate_sum,4)+' м³'}}</td>
                                                                                <td>{{ parseReason(history.reason,8,storage.devices.select_channel_temp)}}</td>
                                                                                <td>{{ history.sensor_in_1?'Да':'Нет' }}</td>
                                                                                <td>{{ history.sensor_in_2?'Да':'Нет' }}</td>
                                                                                <td>{{ history.sensor_out_1?'Вкл':'Выкл' }}</td>
                                                                                <td>{{ history.sensor_out_2?'Вкл':'Выкл' }}</td>
                                                                                <td>{{ history.hall_1?'Да':'Нет' }}</td>
                                                                                <td>{{ history.state_tamper?'Да':'Нет' }}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td>{{history.temperature}}°</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==8&&storage.devices.select_channel_temp._self.device_type==17'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDataGM','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                        <table  class="table table-fixed text-left" id="HistoryDataGM">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="{{getVersionSelectedChannel()==1?'7':'6'}}">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr> 
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Показания</th>
                                                                                <th>Причина</th>
                                                                                <th>Заряд</th>
                                                                                <th>Температура</th>
                                                                                <!-- <th ng-if='getVersionSelectedChannel()==1'>Перезагрузок</th> -->
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-class="history.reason!=1?'dangerHistory':''" ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time' | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{ my_converter.round_size_str(history.sensor_rate_sum,4)+' м³'}}</td>
                                                                                <td>{{ parseReason(history.reason,'GM1',storage.devices.select_channel_temp)}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td>{{history.temperature}}°</td>
                                                                                <!-- <td ng-if='getVersionSelectedChannel()==1'>{{history.count}}</td> -->
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div> 
                                                            <div class="cell cell-content" ng-if='showDangersAll()'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Тревоги</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSI','Тревоги',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSI">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="{{getActiveDevice().device_type!=3?4:2}}">Тревоги {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th ng-if='getActiveDevice().device_type!=3'>Время на устройстве</th><th ng-if='getActiveDevice().device_type!=3'>Заряд</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'undefined',storage.devices.select_channel_temp] | orderBy:'-ts':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td style='cursor: help' title="Время на устройстве">{{history.time?history.get_time():'-'}}</td>
                                                                                <td ng-if='getActiveDevice().device_type!=3'>{{history.charge}}%</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2&&showSi21_22rev3()'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Тревоги</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSI','Тревоги',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSI">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="{{getActiveDevice().device_type!=3?4:2}}">Тревоги {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Время на устройстве</th>
                                                                                <th>Заряд</th>
                                                                                <th>Причина</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'undefined',storage.devices.select_channel_temp] | orderBy:'-ts':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td style='cursor: help' title="Время на устройстве">{{history.time?history.get_time():'-'}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td>{{parseReason(history.reason,'si21_22rev3',storage.devices.select_channel_temp)}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2&&getActiveDevice().device_type==28'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Срабатывания</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSI','Срабатывания',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSI">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="3">Срабатывания {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время на устройстве</th>
                                                                                <th class="debug">Причина</th>
                                                                                <th>Заряд</th>
                                                                                <th>Температура</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'undefined',storage.devices.select_channel_temp] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время на устройстве">{{history.time?history.get_time():'-'}}</td>
                                                                                <td class="debug">{{parseReason(history.reason,28,storage.devices.select_channel_temp)}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td title="Температура" >{{history.temperature}}°</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2&&getActiveDevice().device_type==2'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Тревоги</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSI','Тревоги',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSI">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="3">Тревоги {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время на устройстве</th>
                                                                                <th>Заряд</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'undefined',storage.devices.select_channel_temp] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время на устройстве">{{history.time?history.get_time():'-'}}</td>
                                                                                <td ng-if='getActiveDevice().device_type!=3'>{{history.charge}}%</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2&&getActiveDevice().device_type==3'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Тревоги</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSI','Тревоги',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSI">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="3">Тревоги {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody ng-if='getVersionSelectedChannel()==0'>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'undefined',storage.devices.select_channel_temp] | orderBy:'-ts':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                        <tbody ng-if='getVersionSelectedChannel()==1'>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'undefined',storage.devices.select_channel_temp] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==2&&getActiveDevice().device_type==20'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Тревоги</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSI','Тревоги',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSI">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="{{4}}">Тревоги {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Заряд</th>
                                                                                <th>Состояние</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'undefined',storage.devices.select_channel_temp] | orderBy:'-ts':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td ng-if='storage.devices.select_channel_temp.num_channel==11'>{{history.sensor_11?'Замкнут':'Разомкнут'}}</td>
                                                                                <td ng-if='storage.devices.select_channel_temp.num_channel==12'>{{history.sensor_12?'Замкнут':'Разомкнут'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==20'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySI13','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySI13">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th title="Время оконечного устройства">Дата</th>
                                                                                <th title="Заряд(%)">Заряд(%)</th>
                                                                                <th title="Количество потребленной энергии(Wh)">Wh</th>
                                                                                <th title="Суммарный объем теплоносителя(л)">Объем теплоносителя(л)</th>
                                                                                <th title="Время наработки(ч)">Время наработки(ч)</th>
                                                                                <th title="Температура в подающем трубопроводе С°">t в подающем трубопроводе С°</th>
                                                                                <th title="Температура в обратном трубопроводе С°">t в обратном трубопроводе С°</th>
                                                                                <th title="Расход теплоносителя(л/ч)" >Расход(л/ч)</th>
                                                                                <th title="№ Пакета">№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data'  ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'undefined',storage.devices.select_channel_temp] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Заряд(%)">{{history.charge}}</td>
                                                                                <td title="Количество потребленной энергии(Wh)">{{history.sensor_rate_sum}}</td>
                                                                                <td title="Суммарный объем теплоносителя(л)" >{{history.total_heat_carrier_volume}}</td>
                                                                                <td title="Время наработки(ч)" >{{history.working_time_h}}</td>
                                                                                <td title="Температура в подающем трубопроводе С°" >{{history.temperature}}</td>
                                                                                <td title="Температура в обратном трубопроводе С°" >{{history.temperature_2}}</td>
                                                                                <td title="Расход теплоносителя(л/ч)" >{{history.current_coolant_flow}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3&&getVersionSelectedChannel()==0'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySI13','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySI13">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>Событие</th><th>Температура</th><th>Заряд</th><th>Вскрытие корпуса</th><th>{{storage.devices.select_channel_temp.security_name}}</th><th>{{storage.devices.select_channel_temp.hall_1_name}}</th><th>{{storage.devices.select_channel_temp.hall_2_name}}</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-class="storage.devices.select_channel_temp.statistics.dangers[history.ts]?'dangerHistory':''" ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-ts':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td title="Событие">{{parseReason(history.reason,3)}}</td>
                                                                                <td title="Температура" >{{history.temperature}}°</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td title="Вскрытие корпуса">{{history.state_tamper?'Да':'Нет'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.security_name}}">{{storage.devices.select_channel_temp.security_name?'Да':'Нет'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.hall_1_name}}">{{history.hall_1?'Нет':'Да'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.hall_2_name}}">{{history.hall_2?'Нет':'Да'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==3&&getVersionSelectedChannel()==1'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySI13','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySI13">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>Событие</th><th>t°</th><th>Заряд</th><th>Вскрытие корпуса</th><th>{{storage.devices.select_channel_temp.security_name}}</th><th>{{storage.devices.select_channel_temp.hall_1_name}}</th><th>{{storage.devices.select_channel_temp.hall_2_name}}</th><th>Превышение t°</th><th>min t°</th><th>max t°</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-class="storage.devices.select_channel_temp.statistics.dangers[history.time*1000]?'dangerHistory':''" ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Событие">{{parseReason(history.reason,3)}}</td>
                                                                                <td data-tableexport-msonumberformat='\@' title="Температура">{{history.temperature}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td title="Вскрытие корпуса">{{history.state_tamper?'Да':'Нет'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.security_name}}">{{storage.devices.select_channel_temp.security_name?'Да':'Нет'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.hall_1_name}}">{{history.hall_1?'Нет':'Да'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.hall_2_name}}">{{history.hall_2?'Нет':'Да'}}</td>
                                                                                <td title="Превышение лимита">{{history.limit_exceeded?'Да':'Нет'}}</td>
                                                                                <td data-tableexport-msonumberformat='\@'>{{history.min_temperature}}</td>
                                                                                <td data-tableexport-msonumberformat='\@'>{{history.max_temperature}}</td>
                                                                                <td data-tableexport-msonumberformat='\@' >{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==22&&storage.devices.select_channel_temp._self.device_type==28'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySI13','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySI13">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>Данные</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-class="storage.devices.select_channel_temp.statistics.dangers[history.time*1000]?'dangerHistory':''" ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,9] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Данные">{{modbus(history.data_b)}}</td>
                                                                                <td data-tableexport-msonumberformat='\@' >{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==22&&getVersionSelectedChannel()>0&&storage.devices.select_channel_temp._self.device_type==3'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySI13','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySI13">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>Данные</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-class="storage.devices.select_channel_temp.statistics.dangers[history.time*1000]?'dangerHistory':''" ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,6] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Данные">{{modbus(history.data_b)}}</td>
                                                                                <td data-tableexport-msonumberformat='\@' >{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                                <div class="head-cell-content">
                                                                    <button class="btn btn-success" style="float:left" ng-click="downloadHistory()"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="History">
                                                                        <thead>
                                                                            <tr>
                                                                                <th colspan="{{getVersionSelectedChannel()==0?'8':'7'}}">Отчет о перевозке, накладная №{{storage.devices.select_channel_temp.personal_num}}, дата отгрузки {{convert_date(storage.devices.select_channel_temp.date_shipment,18)}}</th>
                                                                            </tr>
                                                                            <tr>
                                                                                <th colspan="{{getVersionSelectedChannel()==0?'8':'7'}}">{{storage.devices.select_channel_temp.provider}}, Груз {{storage.devices.select_channel_temp.cargo}}, тип {{storage.getNameTypeCargo(storage.devices.select_channel_temp.typeCargo)}}, допустимый температурный режим от {{storage.devices.select_channel_temp.min_t}}° до {{storage.devices.select_channel_temp.max_t}}°</th>
                                                                            </tr>
                                                                            <tr>
                                                                                <th>Дата</th><th>Событие</th><th>Т1/C°</th><th>T2/C°</th><th>Заряд%</th><th>Вскрытие корпуса</th><th ng-if='getVersionSelectedChannel()==0'>{{storage.devices.select_channel_temp.hall_1_name}}</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse " >
                                                                                <td style='cursor: help' title="Время устройства">{{history.get_time()}}</td>
                                                                                <td title="Событие">{{parseReason(history.reason,11,storage.devices.select_channel_temp)}}</td>
                                                                                <td title="Температура 1" ng-class="getColorTemperature(history.temperature)" data-tableexport-msonumberformat='\@'>{{history.temperature}}</td>
                                                                                <td title="Температура 2" ng-class="getColorTemperature(history.temperature_2)" data-tableexport-msonumberformat='\@'>{{history.temperature_2}}</td>
                                                                                <td>{{history.charge}}</td>
                                                                                <td title="Вскрытие корпуса">{{history.state_tamper?'Да':'Нет'}}</td>
                                                                                <td ng-if='getVersionSelectedChannel()==0' title="{{storage.devices.select_channel_temp.hall_1_name}}">{{history.hall_1?'Нет':'Да'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5&&getVersionSelectedChannel()==0'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryTP','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryTP">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="10">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>Показания</th><th>Причина</th><th>Температура</th><th>Заряд</th><th>Питание</th><th>{{storage.devices.select_channel_temp.security_name}}</th><th>{{storage.devices.select_channel_temp.security_name_2}}</th><th>{{storage.devices.select_channel_temp.sensor_name_1}}</th><th>{{storage.devices.select_channel_temp.sensor_name_2}}</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-ts':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help;min-width: 150px' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td title="Показания" ng-class="history.type==1?cssSelectedSensorTp(history.sensorTP,history.limit_exceeded):''">{{history.type==1?get_value4_20mA(history.sensorTP):'-'}}</td>
                                                                                <td title="Причина">{{parseReason(history.reason,4)}}</td>
                                                                                <td title="Температура устройства" >{{history.type==1?history.temperature+'°':history.type==5?'-':''}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td title="Питание">{{history.type_powered=='external'?'Внешнее':history.type_powered=='battery'?'Батарейное':'-'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.security_name}}">{{history.sensor_danger_1?'Да':history.sensor_danger_1!=undefined?'Нет':'-'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.security_name_2}}">{{history.sensor_danger_2?'Да':history.sensor_danger_2!=undefined?'Нет':'-'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.sensor_name_1}}">{{history.sensor_out_1?'Да':history.sensor_out_1!=undefined?'Нет':'-'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.sensor_name_2}}">{{history.sensor_out_2?'Да':history.sensor_out_2!=undefined?'Нет':'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==5&&getVersionSelectedChannel()==1'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryTP','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryTP">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="10">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Нижний порог</th>
                                                                                <th>Показания</th>
                                                                                <th>Верхний порог</th>
                                                                                <th>Причина</th>
                                                                                <th>Температура</th>
                                                                                <th>Заряд</th>
                                                                                <th>Питание</th>
                                                                                <th>{{storage.devices.select_channel_temp.security_name}}</th>
                                                                                <th>{{storage.devices.select_channel_temp.security_name_2}}</th>
                                                                                <th>{{storage.devices.select_channel_temp.sensor_name_1}}</th>
                                                                                <th>{{storage.devices.select_channel_temp.sensor_name_2}}</th>
                                                                                <th>Превышение лимита</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-class="history.reason!==0&&history.reason!==5&&history.type==1?'dangerHistory':''" ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help;min-width: 150px' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Нижний порог">{{history.type==1?get_value4_20mA(history.min_sensor):'-'}}</td>
                                                                                <td title="Показания">{{history.type==1?get_value4_20mA(history.sensorTP):'-'}}</td>
                                                                                <td title="Верхний порог">{{history.type==1?get_value4_20mA(history.max_sensor):'-'}}</td>
                                                                                <td title="Причина">{{history.type==1?parseReason(history.reason,5,storage.devices.select_channel_temp):'-'}}</td>
                                                                                <td title="Температура устройства" >{{history.type==1?history.temperature+'°':history.type==5?'-':''}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td title="Питание">{{history.type_powered=='external'?'Внешнее':history.type_powered=='battery'?'Батарейное':'-'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.security_name}}">{{history.sensor_danger_1?'Да':history.sensor_danger_1!=undefined?'Нет':'-'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.security_name_2}}">{{history.sensor_danger_2?'Да':history.sensor_danger_2!=undefined?'Нет':'-'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.sensor_name_1}}">{{history.sensor_out_1?'Да':history.sensor_out_1!=undefined?'Нет':'-'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.sensor_name_2}}">{{history.sensor_out_2?'Да':history.sensor_out_2!=undefined?'Нет':'-'}}</td>
                                                                                <td title="Превышение лимита">{{history.type==1?(history.limit_exceeded?'Да':'Нет'):'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==6&&storage.devices.select_channel_temp.type_channel!=31'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSMART','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSMART">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="{{storage.devices.select_channel_temp.instrument!==undefined&&storage.devices.select_channel_temp.type_channel==10?7:5}}">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th><th>Причина последнего сообщения</th><th>Температура °</th><th>Заряд</th><th ng-if='storage.devices.select_channel_temp.instrument!==undefined&&storage.devices.select_channel_temp.type_channel==10'>{{storage.devices.select_channel_temp.instrument}}</th><th ng-if='storage.devices.select_channel_temp.instrument2!==undefined&&storage.devices.select_channel_temp.type_channel==10&&getVersionSelectedChannel()==1'>{{storage.devices.select_channel_temp.instrument2}}</th><th ng-if="getVersionSelectedChannel()==1&&storage.devices.select_channel_temp._self.device_type==7">Угол °</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-class="history.reason!=0?'dangerHistory':''" ng-if='toggle_sticky.data&&history.version==getVersionSelectedChannel()' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-ts':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' ng-if="getVersionSelectedChannel()==0||storage.devices.select_channel_temp._self.device_type==10" title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td style='cursor: help' ng-if="getVersionSelectedChannel()>=1&&storage.devices.select_channel_temp._self.device_type!=10" title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Причина последнего сообщения">{{parseReasonSmart(history.reason)}}</td>
                                                                                <td title="Температура">{{history.temperature}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td ng-if='storage.devices.select_channel_temp.type_channel==10&&storage.devices.select_channel_temp.instrument!==undefined' title="{{storage.devices.select_channel_temp.instrument}}">{{history.state_sensor_0?(storage.devices.select_channel_temp.type_channel==10?'Закрыт':storage.devices.select_channel_temp.type_channel==11?'Движется':'Да'):(storage.devices.select_channel_temp.type_channel==10?'Открыт':storage.devices.select_channel_temp.type_channel==11?'Не движется':'Нет')}}</td>
                                                                                <td ng-if='storage.devices.select_channel_temp.type_channel==10&&storage.devices.select_channel_temp.instrument2!==undefined&&getVersionSelectedChannel()==1' title="{{storage.devices.select_channel_temp.instrument2}}">{{history.state_sensor_1?'Закрыт':'Открыт'}}</td>
                                                                                <td style='cursor: help' ng-if="getVersionSelectedChannel()==1&&storage.devices.select_channel_temp._self.device_type==7" title="Угол">{{history.angle}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.devices.select_channel_temp.type_channel==31'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSMART','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSMART">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="19">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th style='cursor: help' title='Время оконечного устройства'>Дата</th>
                                                                                <th style='cursor: help' title='Причина передачи пакета'>Причина</th>
                                                                                <th style='cursor: help' title='Температура на термисторе в °С'>t°С</th>
                                                                                <th style='cursor: help' title="Заряд в процентах, вычисленной по нагрузке АКБ 1">Заряд №1 %</th>
                                                                                <th style='cursor: help' title="Заряд в процентах, вычисленной по нагрузке АКБ 2">Заряд №2 %</th>

                                                                                <th style='cursor: help' title="Напряжение с приемника">мВ</th>
                                                                                <th style='cursor: help' title="Ток передатчика">мА</th>

                                                                                <th style='cursor: help' title="Флаг - используется  батарея 1">ИБ1</th>
                                                                                <th style='cursor: help' title="Флаг - используется  батарея 2">ИБ2</th>
                                                                                <th style='cursor: help' title="Флаг - присутствия  батареи 1">ПБ1</th>
                                                                                <th style='cursor: help' title="Флаг - присутствия  батареи 2">ПБ2</th>
                                                                                <th style='cursor: help' title="Запыленность">Запыленность</th>
                                                                                <th style='cursor: help' title="Пожар">Пожар</th>
                                                                                <th style='cursor: help' title="Тест">Тест</th>
                                                                                <th style='cursor: help' title="Активность охраны">Охрана</th>
                                                                                <th style='cursor: help' title="Неисправность">Неисправность</th>
                                                                                <th style='cursor: help' title="Тревога">Тревога</th>
                                                                                <th style='cursor: help' title="Снятие с крепежной платформы">Снятие</th>
                                                                                <th style='cursor: help' title="Общее оповещение">Оповещение</th>     
                                                                                <th style='cursor: help' title='FCNT'>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-class="history.reason!=6&&history.reason!=9&&history.reason!=16?'dangerHistory':''" ng-if='toggle_sticky.data&&history.version==getVersionSelectedChannel()' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px'  title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Причина последнего сообщения">{{parseReasonSmart(history.reason)}}</td>
                                                                                <td title="Температура">{{history.temperature}}</td>
                                                                                <td>{{history.charge}}</td>
                                                                                <td>{{history.charge2}}</td>

                                                                                <td>{{history.current_mV}}</td>
                                                                                <td>{{history.current_mA}}</td>

                                                                                <td>{{yesOrNo(history.battery_select_1)}}</td>
                                                                                <td>{{yesOrNo(history.battery_select_2)}}</td>
                                                                                <td>{{yesOrNo(history.battery_persent_1)}}</td>
                                                                                <td>{{yesOrNo(history.battery_persent_2)}}</td>
                                                                                <td>{{yesOrNo(history.status_fog)}}</td>
                                                                                <td>{{yesOrNo(history.status_fire)}}</td>
                                                                                <td>{{yesOrNo(history.status_test)}}</td>
                                                                                <td>{{yesOrNo(history.status_guard)}}</td>
                                                                                <td>{{yesOrNo(history.status_faulm)}}</td>
                                                                                <td>{{yesOrNo(history.status_alarm)}}</td>
                                                                                <td>{{yesOrNo(history.status_detach)}}</td>
                                                                                <td>{{yesOrNo(history.status_common)}}</td>

                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==23'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSMART','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSMART">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Причина</th>
                                                                                <th>Температура °</th>
                                                                                <th>Заряд %</th>
                                                                                <th>Влажность %</th>
                                                                                <th>{{storage.devices.select_channel_temp.security_name}}</th>
                                                                                <th>{{storage.devices.select_channel_temp.security_name_2}}</th>
                                                                                <th>Угол °</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-class="history.reason!=1?'dangerHistory':''" ng-if='toggle_sticky.data&&history.version==getVersionSelectedChannel()' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Причина  сообщения">{{parseReasonSmart(history.reason)}}</td>
                                                                                <td title="Температура">{{history.temperature}}</td>
                                                                                <td>{{history.charge}}</td>
                                                                                <td>{{history.damp}}</td>
                                                                                <td  title="{{storage.devices.select_channel_temp.security_name}}">{{history.sensor_in_1?'Закрыт':'Открыт'}}</td>
                                                                                <td  title="{{storage.devices.select_channel_temp.security_name_2}}">{{history.sensor_in_2?'Закрыт':'Открыт'}}</td>
                                                                                <td>{{history.angle}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==25'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">История</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryDangerSMART','История',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryDangerSMART">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">История {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>Причина</th>
                                                                                <th>Температура °</th>
                                                                                <th>Заряд %</th>
                                                                                <th>Влажность %</th>
                                                                                <th>Шум</th>
                                                                                <th>Освещенность</th>
                                                                                <th>СО2</th>
                                                                                <th>Угол °</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-class="history.reason!=1?'dangerHistory':''" ng-if='toggle_sticky.data&&history.version==getVersionSelectedChannel()' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td title="Причина  сообщения">{{parseReasonSmart(history.reason)}}</td>
                                                                                <td title="Температура">{{history.temperature}}</td>
                                                                                <td>{{history.charge}}</td>
                                                                                <td>{{history.damp}}</td>
                                                                                <td>{{history.dB}}</td>
                                                                                <td>{{history.lux}}</td>
                                                                                <td>{{history.CO2}}</td>
                                                                                <td>{{history.angle}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==10'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryLM','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryLM">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="13">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th title="Температура">С°</th>
                                                                                <th>Заряд(%)</th>
                                                                                <th>Движение</th>
                                                                                <th title="Отклонение от вертикали">Угол°</th>
                                                                                <th>Координаты</th>
                                                                                <th>Направление</th>
                                                                                <th>Скорость (км/ч)</th>
                                                                                <th>Высота</th>
                                                                                <th>Вид. спутников</th>
                                                                                <th>Использ. спутников</th>
                                                                                <th>{{storage.devices.select_channel_temp.security_name}}</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-class="history.alarm?'dangerHistory':''" ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время устройства">{{history.get_time()}}</td>
                                                                                <td title="Температура">{{history.temperature}}</td>
                                                                                <td>{{history.charge}}</td>
                                                                                <td>{{history.in_move?'Движется':'Не движется'}}</td>
                                                                                <td title="Отклонение от вертикали">{{history.angle}}</td>
                                                                                <td>{{history.lat}}, {{history.lng}}</td>
                                                                                <td>{{history.dir}}</td>
                                                                                <td>{{history.speed!==undefined?history.speed:'-'}}</td>
                                                                                <td>{{history.alt}}</td>
                                                                                <td>{{history.sat_visible}}</td>
                                                                                <td>{{history.sat_used}}</td>
                                                                                <td>{{history.alarm?'Тревога':'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==26'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryLM','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryLM">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="13">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th title="Температура">С°</th>
                                                                                <th>Заряд(%)</th>
                                                                                <th>Причина</th>
                                                                                <th title="Отклонение от вертикали">Угол°</th>
                                                                                <th>Координаты</th>
                                                                                <th>Интенсивность освещения %</th>
                                                                                <th>Корпус</th>
                                                                                <th>Питание</th>
                                                                                <th>Напряжение</th>
                                                                                <th>Мощность</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-class="history.alarm?'dangerHistory':''" ng-if='toggle_sticky.data' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время устройства">{{history.get_time()}}</td>
                                                                                <td title="Температура">{{history.temperature}}</td>
                                                                                <td>{{history.charge}}</td>
                                                                                <td>{{history.reason}}</td>
                                                                                <td title="Отклонение от вертикали">{{history.angle}}</td>
                                                                                <td>{{history.lat}}, {{history.lng}}</td>
                                                                                <td>{{history.led_duty}}</td>
                                                                                <td>{{history.state_tamper}}</td>
                                                                                <td>{{history.status_state}}</td>
                                                                                <td>{{history.nomenal_voltage}}</td>
                                                                                <td>{{history.total_power_summary}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>

                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==4'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" title="">Данные</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySVE','Данные',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button type="button" class="close" ng-click="toggle_sticky.data=false"><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySVE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">Данные {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Дата</th>
                                                                                <th>куб. м</th>
                                                                                <th>t°</th>
                                                                                <th>Заряд</th>
                                                                                <th>Блокировка экрана</th>
                                                                                <th>Протечка</th>
                                                                                <th>Прорыв</th>
                                                                                <th>Магнитное воздействие</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data' ng-class="historyCss(history)" ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type] | orderBy:'-time':reverse | limitTo:my_limit()" >
                                                                                <td style='cursor: help;min-width: 150px' title="Время оконечного устройства" >{{history.get_time()}}</td>
                                                                                <td>{{my_converter.round_size_str(history.sensorKB,4)}} </td>
                                                                                <td title="Температура" ng-class="getColorTemperature(history.temperature)">{{history.temperature}}</td>
                                                                                <td>{{history.charge}}%</td>
                                                                                <td>{{history.state_display?'Да':'Нет'}}</td>
                                                                                <td>{{history.leaking?'Да':'Нет'}}</td>
                                                                                <td>{{history.breakthrough?'Да':'Нет'}}</td>
                                                                                <td title="{{storage.devices.select_channel_temp.hall_1_name}}">{{history.hall_1?'Да':'Нет'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data=1" ng-model="step_data">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data=count_data+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_event" ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_event?'zoomIn animated':''" id="data_event" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Текущее состояние</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryStateUE','Текущее состояние',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_event=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryStateUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="{{storage.devices.select_channel_temp.type_meter!=3&&storage.devices.select_channel_temp.type_meter!=4&&storage.devices.select_channel_temp.type_meter!=6?8:6}}">Текущее состояние {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>Причина</th>
                                                                                <th>кВт⋅ч</th>
                                                                                <th>t°</th>
                                                                                <th ng-if='storage.devices.select_channel_temp.type_meter!=3&&storage.devices.select_channel_temp.type_meter!=4&&storage.devices.select_channel_temp.type_meter!=6'>Клеммная крышка</th>
                                                                                <th ng-if='storage.devices.select_channel_temp.type_meter!=3&&storage.devices.select_channel_temp.type_meter!=4&&storage.devices.select_channel_temp.type_meter!=6'>Вскрытие корпуса</th>
                                                                                <th>Энергия</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_event' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,1] | orderBy:'-time' | limitTo:my_limit_event()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{parseEventUE(history.event,storage.devices.select_channel_temp._self.device_type)}}</td>
                                                                                <td>{{history.sensor_rate_sum}}</td>
                                                                                <td>{{history.temperature}}</td>
                                                                                <td ng-if='storage.devices.select_channel_temp.type_meter!=3&&storage.devices.select_channel_temp.type_meter!=4&&storage.devices.select_channel_temp.type_meter!=6'>{{history.state_1?'Закрыта':'Вскрыта'}}</td>
                                                                                <td ng-if='storage.devices.select_channel_temp.type_meter!=3&&storage.devices.select_channel_temp.type_meter!=4&&storage.devices.select_channel_temp.type_meter!=6'>{{history.state_2?'Закрыт':'Вскрыт'}}</td>
                                                                                <td>{{history.state_3?'Подается':'Ограничена'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_event=1" ng-model="step_data_event">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_event=count_data_event+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_history" ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_history?'zoomIn animated':''" id="data_history" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==11'>
                                                                <div class="head-cell-content">
                                                                    <button class="btn btn-success" style="float:left" ng-click="downloadTable('HistoryEvent','Отчет об отклонениях '+convert_date(storage.devices.select_channel_temp.date_shipment,18),storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_history=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryEvent">
                                                                        <thead>
                                                                            <tr>
                                                                                <th colspan="6">Отчет об отклонениях, накладная №{{storage.devices.select_channel_temp.personal_num}}, дата отгрузки {{convert_date(storage.devices.select_channel_temp.date_shipment,18)}}</th>
                                                                            </tr>
                                                                            <tr>
                                                                                <th colspan="6">{{storage.devices.select_channel_temp.provider}}, Груз {{storage.devices.select_channel_temp.cargo}}, тип {{storage.getNameTypeCargo(storage.devices.select_channel_temp.typeCargo)}}, допустимый температурный режим от {{storage.devices.select_channel_temp.min_t}}° до {{storage.devices.select_channel_temp.max_t}}°</th>
                                                                            </tr>
                                                                            <tr ng-if='storage.devices.select_channel_temp.statistics.arr_value_events.length>0'ng-if='storage.devices.select_channel_temp.statistics.arr_value_events.length>0'>
                                                                                <th>Дата</th><th>Событие</th><th>Отклонение</th><th>Т1/C°</th><th>T2/C°</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-repeat="history in storage.devices.select_channel_temp.statistics.arr_value_events | orderBy:'-time':reverse " >
                                                                                <td style='cursor: help' title="Время устройства">{{history.get_time()}}</td>
                                                                                <td title="Событие">{{parseReason(history.reason,11,storage.devices.select_channel_temp)}}</td>
                                                                                <td title="Отклонение">{{history.deviation}}</td>
                                                                                <td title="Температура 1" ng-class="getColorTemperature(history.temperature_1)" data-tableexport-msonumberformat='\@'>{{history.temperature_1}}</td>
                                                                                <td title="Температура 2" ng-class="getColorTemperature(history.temperature_2)" data-tableexport-msonumberformat='\@'>{{history.temperature_2}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                            <tr ng-if='storage.devices.select_channel_temp.statistics.arr_value_events.length>0'>
                                                                                <td colspan="5" style="text-align: right">Общее количество отклонений</td><td>{{storage.devices.select_channel_temp.statistics.arr_value_events.length}}</td>
                                                                            </tr>
                                                                            <tr ng-if='storage.devices.select_channel_temp.statistics.arr_value_events.length<=0'>
                                                                                <td colspan="6" style="text-align: right">Отклонения не зафиксированы</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_history=1" ng-model="step_data_history">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_history=count_data_history+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.devices.select_channel_temp._self.device_type==3||storage.devices.select_channel_temp._self.device_type==28'>
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" >Активность</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryActivityUE','Активность',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_history=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryActivityUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="4">Активость {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время сервера</th><th>Время оконечного устройства</th><th>Тип пакета</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_history' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'all'] | orderBy:'-ts' | limitTo:my_limit_history()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{getNamePackage(history.dt,history.type,history)}} {{history.type!=5?'':history.result==1?' (Успех)':history.result===0?' (Ошибка)':' (Не поддерживается)'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_history=1" ng-model="step_data_history">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_history=count_data_history+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'>
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" >Активность</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryActivityUE','Активность',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_history=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryActivityUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="4">Активость {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время сервера</th><th>Время прибора учета</th><th>Тип пакета</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_history' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'all'] | orderBy:'-ts' | limitTo:my_limit_history()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{getNamePackage(history.dt,history.type,history)}} {{history.type!=6?'':history.result==1?' (Успех)':history.result===0?' (Ошибка)':' (Не поддерживается)'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_history=1" ng-model="step_data_history">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_history=count_data_history+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.devices.select_channel_temp._self.device_type==2||storage.devices.select_channel_temp._self.device_type==11||storage.devices.select_channel_temp._self.device_type==18||storage.devices.select_channel_temp._self.device_type==1||storage.devices.select_channel_temp._self.device_type==20||storage.devices.select_channel_temp._self.device_type==21||storage.devices.select_channel_temp._self.device_type==31'>
                                                                <div class="head-cell-content"><h3 class="h3-title-cell" >Активность</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryActivityUE','Активность',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_history=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryActivityUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="4">Активость {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время сервера</th><th>Время оконечного устройства</th><th>Тип пакета</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_history' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,'all',storage.devices.select_channel_temp] | orderBy:'-ts' | limitTo:my_limit_history()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{getNamePackage(history.dt,history.type,history)}} </td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_history=1" ng-model="step_data_history">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_history=count_data_history+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_energy" ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_energy?'zoomIn animated':''" id="data_energy" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Накопленная энергия</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySaveEnergyUE','Накопленная энергия',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_energy=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                    </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySaveEnergyUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="10">Накопленная энергия {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr ng-if='storage.devices.select_channel_temp._self.device_type!=24' class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>Заводской номер прибора учета</th>
                                                                                <th ng-hide='storage.devices.select_channel_temp._self.device_type==24||storage.devices.select_channel_temp._self.device_type==27'>Активных тарифов</th>
                                                                                <th>Активный тариф</th>
                                                                                <th>Энергия по тарифу 1</th>
                                                                                <th>Энергия по тарифу 2</th>
                                                                                <th>Энергия по тарифу 3</th>
                                                                                <th>Энергия по тарифу 4</th>
                                                                                <th>Сумма</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                            <tr ng-if='storage.devices.select_channel_temp._self.device_type==24' class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>Заводской номер прибора учета</th>
                                                                                <th>Активный тариф</th>
                                                                                <th>Энергия по тарифу 1, кВт⋅ч</th>
                                                                                <th>Энергия по тарифу 2, кВт⋅ч</th>
                                                                                <th>Энергия по тарифу 3, кВт⋅ч</th>
                                                                                <th>Энергия по тарифу 4, кВт⋅ч</th>
                                                                                <th>Сумма, кВт⋅ч</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_energy' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,4] | orderBy:'-time' | limitTo:my_limit_energy()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{storage.devices.select_channel_temp.serial}}</td>
                                                                                <td ng-hide='storage.devices.select_channel_temp._self.device_type==24||storage.devices.select_channel_temp._self.device_type==27'>{{history.count_rate_active}}</td>
                                                                                <td>{{history.rate_active}}</td>
                                                                                <td>{{history.sensor_rate_1}}</td>
                                                                                <td>{{history.sensor_rate_2}}</td>
                                                                                <td>{{history.sensor_rate_3}}</td>
                                                                                <td>{{history.sensor_rate_4}}</td>
                                                                                <td>{{history.sensor_rate_sum}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_energy=1" ng-model="step_data_energy">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_energy=count_data_energy+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==9'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Накопленная энергия</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySaveEnergyUE2','Накопленная энергия',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_energy=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySaveEnergyUE2">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9">Накопленная энергия {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время</th><th>Энергия по тарифу 1</th><th>Энергия по тарифу 2</th><th>Энергия по тарифу 3</th><th>Энергия по тарифу 4</th><th>Сумма</th><th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody ng-if='getVersionSelectedChannel()==0'>
                                                                            <tr ng-if='toggle_sticky.data_energy' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,4] | orderBy:'-ts' | limitTo:my_limit_energy()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время сервера">{{history.get_ts()}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_1*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_2*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_3*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_4*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_sum*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                        <tbody ng-if='getVersionSelectedChannel()==1'>
                                                                            <tr ng-if='toggle_sticky.data_energy' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,4] | orderBy:'-time' | limitTo:my_limit_energy()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time()}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_1*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_2*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_3*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_4*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{my_converter.round_size(history.sensor_rate_sum*storage.devices.select_channel_temp.kt,4)}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_energy=1" ng-model="step_data_energy">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_energy=count_data_energy+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_energy_archive" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_energy_archive?'zoomIn animated':''" id="data_energy_archive" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" >
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Архив накопленной энергии</h3>
                                                                    <button style="margin-right: 0.5rem;" class="btn btn-success head-cell-content-btn-download" title='Запрос архива накоплений энергии по 4 тарифам за 36 последние месяцев'  ng-click="showModalCommands(25)"><span class="fa fa-cloud-download"></span> 36М</button>
                                                                    <button style="margin-right: 0.5rem;" class="btn btn-success head-cell-content-btn-download" title='Запрос архива накоплений энергии по 4 тарифам за 128 последних суток'  ng-click="showModalCommands(26)"><span class="fa fa-cloud-download"></span> 128Д</button>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistorySaveEnergyArchive','Архив накопленной энергии',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_energy_archive=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySaveEnergyArchive">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="9"> Архив накопленной энергии {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th title='Время формирования пакета, время устройства'>Время формирование пакета</th>
                                                                                <th title='Дата устройства'>Запрашиваемая дата</th>
                                                                                <th>Энергия по тарифу 1, Вт⋅ч</th>
                                                                                <th>Энергия по тарифу 2, Вт⋅ч</th>
                                                                                <th>Энергия по тарифу 3, Вт⋅ч</th>
                                                                                <th>Энергия по тарифу 4, Вт⋅ч</th>
                                                                                <th>Сумма, Вт⋅ч</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_energy_archive' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,16] | orderBy:'-time' | limitTo:my_limit_energy_archive()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.get_time_original_2(history.selected_y_archive,history.selected_m_archive,history.selected_d_archive)}}</td>
                                                                                <td>{{history.cumulative_energy_rate_1}}</td>
                                                                                <td>{{history.cumulative_energy_rate_2}}</td>
                                                                                <td>{{history.cumulative_energy_rate_3}}</td>
                                                                                <td>{{history.cumulative_energy_rate_4}}</td>
                                                                                <td>{{history.cumulative_energy_summary}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_energy_archive=1" ng-model="step_data_energy_archive">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_energy_archive=count_data_energy_archive+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_slices" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_slices?'zoomIn animated':''" id="data_slices" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" >
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >30-ти минутные срезы активной мощности</h3>
                                                                    <button style="margin-right: 0.5rem;" class="btn btn-success head-cell-content-btn-download" title='Запрос 30-минутного среза активной мощности'  ng-click="showModalCommands(27)"><span class="fa fa-cloud-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_slices=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySaveEnergyArchive">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="3"> 30-ти минутные срезы активной мощности {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th colspan="3"></th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_slices' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,18] | orderBy:'-ts' | limitTo:my_limit_slices()" >
                                                                                <td colspan="3">
                                                                                    <table class='table'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="3" title="№ Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{history.get_time_original('selected_date','LL')}}, №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время</th>
                                                                                                <th>P, Вт</th>
                                                                                                <th>Статус</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='slice in history.half_hour_slices_active_power  | orderBy:"date_begin" '>
                                                                                                <td>{{history.get_time_original_range(slice.date_begin)}}</td>
                                                                                                <td>{{slice.active_power}}</td>
                                                                                                <td>{{slice.status}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_slices=1" ng-model="step_data_slices">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_slices=count_data_slices+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_journals" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24' ng-class="toggle_sticky.data_journals?'zoomIn animated':''" id="data_journals" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" >
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Журналы</h3>
                                                                    <button style="margin-right: 0.5rem;" class="btn btn-success head-cell-content-btn-download" title='Запрос журнала'  ng-click="showModalCommands(28)"><span class="fa fa-cloud-download"></span></button>
                                                                    <select class="form-control select_head-cell-content" ng-model="showJournalType" >
                                                                        <option ng-value='-1' value='-1'>Все</option>
                                                                        <option ng-value='19' value='19'>питания</option>
                                                                        <option ng-value='20' value='20'>Отклонения частот</option>
                                                                        <option ng-value='21' value='21'>Отклонения напряжения от заданных пределов</option>
                                                                        <option ng-value='22' value='22'>Перенапряжения</option>
                                                                        <option ng-value='23' value='23'>Провалы  напряжения</option>
                                                                        <option ng-value='24' value='24'>Включение/Выключение реле нагрузки</option>
                                                                        <option ng-value='25' value='25'>Вскрытия корпуса</option>
                                                                        <option ng-value='26' value='26'>Изменения времени/даты</option>
                                                                        <option ng-value='27' value='27'>Коррекция времени</option>
                                                                        <option ng-value='28' value='28'>Изменения тарифного расписания</option>
                                                                        <option ng-value='29' value='29'>Записи команд по интерфейсу</option>
                                                                        <option ng-value='30' value='30'>Превышения мощности</option>
                                                                        <option ng-value='31' value='31'>Пиковые значения напряжений</option>
                                                                    </select>
                                                                    <button ng-click="toggle_sticky.data_journals=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistorySaveJournal">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th> Журнал электросчётчика {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th></th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_journals&&(showJournalType == -1 || showJournalType == history.type )' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,19] | orderBy:'-ts' | limitTo:my_limit_journals()" >
                                                                                <td colspan="4">
                                                                                    <table class='table' ng-if='history.type==19'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="4" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время включения</th>
                                                                                                <th>Время выключения</th>
                                                                                                <th>Код включения</th>
                                                                                                <th>Служебный байт</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date_begin" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_end)}}</td>
                                                                                                <td>{{j.code}}</td>
                                                                                                <td>{{j.service_info=='ff'?'-':j.service_info}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==20'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="5" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время начала отклонения</th>
                                                                                                <th>Время окончания отклонения</th>
                                                                                                <th>Служебный байт</th>
                                                                                                <th>Макс/Мин значение частоты</th>
                                                                                                <th>Максимальное отклонение, %</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date_begin" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_end)}}</td>
                                                                                                <td>{{j.service_info=='ff'?'-':j.service_info}}</td>
                                                                                                <td>{{j.max_value===undefined?'-':j.max_value}}</td>
                                                                                                <td>{{j.max_deviation===undefined?'-':j.max_deviation}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==21'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="11" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время начала отклонения</th>
                                                                                                <th>Время окончания отклонения</th>
                                                                                                <th>Служебный байт</th>
                        
                                                                                                <th>A</th>
                                                                                                <th>B</th>
                                                                                                <th>C</th>
                                                                                                <th>Фаза с макс отклонением</th>
                                                                                                <th>Пропало питание</th>
                                                                                                <th>Команда записи настроек</th>
                                                                                                
                        
                                                                                                <th>Макс/Мин значение напряжения</th>
                                                                                                <th>Максимальное напряжения во время отклонение , %</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date_begin" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_end)}}</td>
                                                                                                <td>{{j.service_info=='ff'?'-':j.service_info}}</td>
                        
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.A === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.B === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.C === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':j.number_phase_deviation.code_phase_max_deviation}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.end_event_power_lost === true?'Да':' Нет')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.end_event_exec_cmd_settings  === true?'Да':' Нет')}}</td>
                        
                                                                                                <td>{{j.max_value===undefined?'-':j.max_value}}</td>
                                                                                                <td>{{j.max_deviation===undefined?'-':j.max_deviation}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==22'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="11" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время начала перенапряжения</th>
                                                                                                <th>Время окончания перенапряжения</th>
                                                                                                <th>Служебный байт</th>
                        
                                                                                                <th>A</th>
                                                                                                <th>B</th>
                                                                                                <th>C</th>
                                                                                                <th>Фаза с макс отклонением</th>
                                                                                                <th>Пропало питание</th>
                                                                                                <th>Команда записи настроек</th>
                                                                                                
                        
                                                                                                <th>Макс/Мин значение перенапряжения</th>
                                                                                                <th>Максимальное перенапряжения, %</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date_begin" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_end)}}</td>
                                                                                                <td>{{j.service_info=='ff'?'-':j.service_info}}</td>
                        
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.A === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.B === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.C === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':j.number_phase_deviation.code_phase_max_deviation}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.end_event_power_lost === true?'Да':' Нет')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.end_event_exec_cmd_settings  === true?'Да':' Нет')}}</td>
                        
                                                                                                <td>{{j.max_value===undefined?'-':j.max_value}}</td>
                                                                                                <td>{{j.max_deviation===undefined?'-':j.max_deviation}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==23'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="11" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время начала провала</th>
                                                                                                <th>Время окончания провала</th>
                                                                                                <th>Служебный байт</th>
                        
                                                                                                <th>A</th>
                                                                                                <th>B</th>
                                                                                                <th>C</th>
                                                                                                <th>Фаза с макс отклонением</th>
                                                                                                <th>Пропало питание</th>
                                                                                                <th>Команда записи настроек</th>
                                                                                                
                        
                                                                                                <th>Макс/Мин значение напряжения во время провала</th>
                                                                                                <th>Максимальное значения провала напряжения, %</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date_begin" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_end)}}</td>
                                                                                                <td>{{j.service_info=='ff'?'-':j.service_info}}</td>
                        
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.A === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.B === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.C === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':j.number_phase_deviation.code_phase_max_deviation}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.end_event_power_lost === true?'Да':' Нет')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.end_event_exec_cmd_settings  === true?'Да':' Нет')}}</td>
                        
                                                                                                <td>{{j.max_value===undefined?'-':j.max_value}}</td>
                                                                                                <td>{{j.max_deviation===undefined?'-':j.max_deviation}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==24'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="3" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время срабатывания реле</th>
                        
                                                                                                <th>Код источника срабатывания реле</th>
                                                                                                <th>Состояние реле после события</th>
                                                                                                
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date_begin" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td>{{j.byte_state.status_parse==false?'-':parseCodeReasonRelay(j.byte_state.code_reason)}}</td>
                                                                                                <td>{{j.byte_state.status_parse==false?'-':(j.byte_state.relay_state === true?'Реле включено':'Реле отключено')}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==25'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="1" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время вскрытия корпуса</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"-date" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date)}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==26'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="3" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время до события</th>
                                                                                                <th>Время после события</th>
                                                                                                <th>Код интерфейса</th>
                                                                                                
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date_begin" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_end)}}</td>
                                                                                                <td>{{j.code===undefined?'-':j.code}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==27'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="3" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время события</th>
                                                                                                <th>Код интерфейса</th>
                                                                                                <th>Значение коррекция</th>
                                                                                                
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date)}}</td>
                                                                                                <td>{{j.code===undefined?'-':j.code}}</td>
                                                                                                <td>{{j.value===undefined?'-':j.value}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==28'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="2" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время события</th>
                                                                                                <th>Код интерфейса</th>
                                                                                                
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date)}}</td>
                                                                                                <td>{{j.code===undefined?'-':j.code}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==29'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="3" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время события</th>
                                                                                                <th>Код интерфейса</th>
                                                                                                <th>Код команды</th>
                                                                                                
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date)}}</td>
                                                                                                <td>{{j.code===undefined?'-':j.code}}</td>
                                                                                                <td>{{j.cmd===undefined?'-':j.cmd}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==30'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="5" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время превышения порога мощности</th>
                                                                                                <th>Время возврата мощности к доп. значению</th>
                                                                                                <th>Служебный байт №1</th>
                                                                                                <th>Служебный байт №2</th>
                                                                                                
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal  | orderBy:"date_begin" '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_end)}}</td>
                                                                                                <td>{{j.service_info===undefined?'-':j.service_info}}</td>
                                                                                                <td>{{j.service_info_2===undefined?'-':j.service_info_2}}</td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                    <table class='table' ng-if='history.type==31'>
                                                                                        <thead>
                                                                                            <tr>
                                                                                                <th colspan="5" title="{{getNamePackage(history.dt,history.type,history)}}, № Пакета: {{history.num_package}}; Fcnt: {{history.fcnt}}">
                                                                                                    {{getNamePackage(history.dt,history.type,history)}} , Пакет №{{history.num_package}}, fcnt {{history.fcnt}}
                                                                                                </th>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <th>Время начала </th>
                                                                                                <th>Время окончания</th>
                                                                                                <th>Служебный байт</th>
                        
                                                                                                <th>A</th>
                                                                                                <th>B</th>
                                                                                                <th>C</th>
                                                                                                <th>Фаза с макс отклонением</th>
                                                                                                <th>Пропало питание</th>
                                                                                                <th>Команда записи настроек</th>
                                                                                                
                        
                                                                                                <th>Мин/Макс значение</th>
                                                                                                <th>Максимальное значение, %</th>
                                                                                                <th>Тип</th>
                                                                                            </tr>
                                                                                        </thead>
                                                                                        <tbody>
                                                                                            <tr ng-repeat='j in history.journal '>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_begin)}}</td>
                                                                                                <td style='min-width: 150px'>{{history.get_time_original_3(j.date_end)}}</td>
                                                                                                <td>{{j.service_info=='ff'?'-':j.service_info}}</td>
                        
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.A === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.B === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.C === true?'Отклонения':' Нет отклонений')}}</td>
                                                                                                <td>{{(history.num_package == 2 && ($index == 1 || $index == 2) )?'-':(j.number_phase_deviation.status_parse==false?'-':j.number_phase_deviation.code_phase_max_deviation)}}</td>
                                                                                                <td>{{(history.num_package == 2 && ($index == 1 || $index == 2) )?'-':(j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.end_event_power_lost === true?'Да':' Нет'))}}</td>
                                                                                                <td>{{(history.num_package == 2 && ($index == 1 || $index == 2) )?'-':(j.number_phase_deviation.status_parse==false?'-':(j.number_phase_deviation.end_event_exec_cmd_settings  === true?'Да':' Нет'))}}</td>
                        
                                                                                                <td>{{j.min_value===undefined?'-':j.min_value}}</td>
                                                                                                <td>{{j.max_deviation===undefined?'-':j.max_deviation}}</td>
                                                                                                <td>{{getTextTypeJournal31(history.num_package,$index)}}<td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_journals=1" ng-model="step_data_journals">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_journals=count_data_journals+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_instant" ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_instant?'zoomIn animated':''" id="data_instant" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==12'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Мгновенные значения</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryMomentValueUE','Мгновенные значения',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_instant=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryMomentValueUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="17">Мгновенные значения {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>U1</th>
                                                                                <th>U2</th>
                                                                                <th>U3</th>
                                                                                <th>Ток 1</th>
                                                                                <th>Ток 2</th>
                                                                                <th>Ток 3</th>
                                                                                <th>Фаза 1, Вт⋅ч</th>
                                                                                <th>Фаза 2, Вт⋅ч</th>
                                                                                <th>Фаза 3, Вт⋅ч</th>
                                                                                <th>Q1</th>
                                                                                <th>Q2</th>
                                                                                <th>Q3</th>
                                                                                <th>КМ1</th>
                                                                                <th>КМ2</th>
                                                                                <th>КМ3</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_instant' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,2] | orderBy:'-time' | limitTo:my_limit_instant()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.B_1!==undefined?history.B_1:'-'}}</td>
                                                                                <td>{{history.B_2!==undefined?history.B_2:'-'}}</td>
                                                                                <td>{{history.B_3!==undefined?history.B_3:'-'}}</td>
                                                                                <td>{{history.A_1!==undefined?history.A_1:'-'}}</td>
                                                                                <td>{{history.A_2!==undefined?history.A_2:'-'}}</td>
                                                                                <td>{{history.A_3!==undefined?history.A_3:'-'}}</td>
                                                                                <td>{{history.P_1!==undefined?history.P_1:'-'}}</td>
                                                                                <td>{{history.P_2!==undefined?history.P_2:'-'}}</td>
                                                                                <td>{{history.P_3!==undefined?history.P_3:'-'}}</td>
                                                                                <td>{{history.Q_1!==undefined?history.Q_1:'-'}}</td>
                                                                                <td>{{history.Q_2!==undefined?history.Q_2:'-'}}</td>
                                                                                <td>{{history.Q_3!==undefined?history.Q_3:'-'}}</td>
                                                                                <td>{{history.S_1!==undefined?history.S_1:'-'}}</td>
                                                                                <td>{{history.S_2!==undefined?history.S_2:'-'}}</td>
                                                                                <td>{{history.S_3!==undefined?history.S_3:'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_instant=1" ng-model="step_data_instant">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_instant=count_data_instant+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==27'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Мгновенные значения</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryMomentValueUE','Мгновенные значения',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_instant=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryMomentValueUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="17">Мгновенные значения {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>U1(B)</th>
                                                                                <th>U2(B)</th>
                                                                                <th>U3(B)</th>
                                                                                <th>I1(А)</th>
                                                                                <th>I2(А)</th>
                                                                                <th>I3(А)</th>
                                                                                <th>P1(Вт)</th>
                                                                                <th>P2(Вт)</th>
                                                                                <th>P3(Вт)</th>
                                                                                <th>Q1(вар)</th>
                                                                                <th>Q2(вар)</th>
                                                                                <th>Q3(вар)</th>
                                                                                <th>cosφ 1</th>
                                                                                <th>cosφ 2</th>
                                                                                <th>cosφ 3</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_instant' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,2] | orderBy:'-time' | limitTo:my_limit_instant()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.B_1!==undefined?history.B_1:'-'}}</td>
                                                                                <td>{{history.B_2!==undefined?history.B_2:'-'}}</td>
                                                                                <td>{{history.B_3!==undefined?history.B_3:'-'}}</td>
                                                                                <td>{{history.A_1!==undefined?history.A_1:'-'}}</td>
                                                                                <td>{{history.A_2!==undefined?history.A_2:'-'}}</td>
                                                                                <td>{{history.A_3!==undefined?history.A_3:'-'}}</td>
                                                                                <td>{{history.P_1!==undefined?history.P_1:'-'}}</td>
                                                                                <td>{{history.P_2!==undefined?history.P_2:'-'}}</td>
                                                                                <td>{{history.P_3!==undefined?history.P_3:'-'}}</td>
                                                                                <td>{{history.Q_1!==undefined?history.Q_1:'-'}}</td>
                                                                                <td>{{history.Q_2!==undefined?history.Q_2:'-'}}</td>
                                                                                <td>{{history.Q_3!==undefined?history.Q_3:'-'}}</td>
                                                                                <td>{{history.S_1!==undefined?history.S_1:'-'}}</td>
                                                                                <td>{{history.S_2!==undefined?history.S_2:'-'}}</td>
                                                                                <td>{{history.S_3!==undefined?history.S_3:'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_instant=1" ng-model="step_data_instant">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_instant=count_data_instant+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Мгновенные значения №1</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryMomentValueUE','Мгновенные значения',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_instant=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryMomentValueUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="17">Мгновенные значения №1 {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>U1, В</th>
                                                                                <th>U2, В</th>
                                                                                <th>U3, В</th>
                                                                                <th>Ток 1, A</th>
                                                                                <th>Ток 2, A</th>
                                                                                <th>Ток 3, A</th>
                                                                                <th>cosφ 1</th>
                                                                                <th>cosφ 2</th>
                                                                                <th>cosφ 3</th>
                                                                                <th>Σ cosφ</th>
                                                                                <th>Частота, Гц</th>
                                                                                <th>Σ S, Вт</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_instant' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,2] | orderBy:'-time' | limitTo:my_limit_instant()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.voltage_A!==undefined?history.voltage_A:'-'}}</td>
                                                                                <td>{{history.voltage_B!==undefined?history.voltage_B:'-'}}</td>
                                                                                <td>{{history.voltage_C!==undefined?history.voltage_C:'-'}}</td>
                                                                                <td>{{history.electric_current_A!==undefined?history.electric_current_A:'-'}}</td>
                                                                                <td>{{history.electric_current_B!==undefined?history.electric_current_B:'-'}}</td>
                                                                                <td>{{history.electric_current_C!==undefined?history.electric_current_C:'-'}}</td>
                                                                                <td>{{history.power_factor_A!==undefined?history.power_factor_A:'-'}}</td>
                                                                                <td>{{history.power_factor_B!==undefined?history.power_factor_B:'-'}}</td>
                                                                                <td>{{history.power_factor_C!==undefined?history.power_factor_C:'-'}}</td>
                                                                                <td>{{history.power_factor_summary!==undefined?history.power_factor_summary:'-'}}</td>
                                                                                <td>{{history.frequency_network!==undefined?history.frequency_network:'-'}}</td>
                                                                                <td>{{history.total_power_summary!==undefined?history.total_power_summary:'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_instant=1" ng-model="step_data_instant">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_instant=count_data_instant+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_instant2" ng-class="storage.devices.get_history_select_channel(storage.date_range).length>0&&toggle_sticky.data_instant2?'zoomIn animated':''" id="data_instant2" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Мгновенные значения №2</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryMoment2ValueUE','Мгновенные значения',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_instant2=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryMoment2ValueUE">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="17">Мгновенные значения №2 {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>P1, Вт</th>
                                                                                <th>P2, Вт</th>
                                                                                <th>P3, Вт</th>
                                                                                <th>Σ P, Вт</th>
                                                                                <th>Q1, В⋅А</th>
                                                                                <th>Q2, В⋅А</th>
                                                                                <th>Q3, В⋅А</th>
                                                                                <th>Σ Q, В⋅А</th>
                                                                                <th>S1, Вт</th>
                                                                                <th>S2, Вт</th>
                                                                                <th>S3, Вт</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_instant2' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,32] | orderBy:'-time' | limitTo:my_limit_instant2()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.active_power_A!==undefined?history.active_power_A:'-'}}</td>
                                                                                <td>{{history.active_power_B!==undefined?history.active_power_B:'-'}}</td>
                                                                                <td>{{history.active_power_C!==undefined?history.active_power_C:'-'}}</td>
                                                                                <td>{{history.active_power_summary!==undefined?history.active_power_summary:'-'}}</td>
                                                                                <td>{{history.reactive_power_A!==undefined?history.reactive_power_A:'-'}}</td>
                                                                                <td>{{history.reactive_power_B!==undefined?history.reactive_power_B:'-'}}</td>
                                                                                <td>{{history.reactive_power_C!==undefined?history.reactive_power_C:'-'}}</td>
                                                                                <td>{{history.reactive_power_summary!==undefined?history.reactive_power_summary:'-'}}</td>
                                                                                <td>{{history.total_power_A!==undefined?history.total_power_A:'-'}}</td>
                                                                                <td>{{history.total_power_B!==undefined?history.total_power_B:'-'}}</td>
                                                                                <td>{{history.total_power_C!==undefined?history.total_power_C:'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_instant2=1" ng-model="step_data_instant2">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_instant2=count_data_instant2+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_info&&storage.devices.select_channel_temp._self.device_type==24" ng-class="toggle_sticky.data_info?'zoomIn animated':''" id="data_info" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Информация о счетчике блок 1</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryInfoSPBZIP','Информация о счетчике блок 1',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_info=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryInfoSPBZIP">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="17">Информация о счетчике блок 1 {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>Версия ПО</th>
                                                                                <th>Произведен</th>
                                                                                <th>Серийный №</th>
                                                                                <th>Сетевой №</th>
                                                                                <th>Адрес</th>
                                                                                <th>Версия модуля</th>
                                                                                <th>Версия параметризации</th>
                                                                                <th>U, В</th>
                                                                                <th>I, A</th>
                                                                                <th>Max I</th>
                                                                                <th>Код</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_info' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,9] | orderBy:'-time' | limitTo:my_limit_info()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.version_soft_device!==undefined?history.version_soft_device:'-'}}</td>
                                                                                <td>{{history.get_time_original('release_date','L')}}</td>
                                                                                <td>{{history.serial!==undefined?history.serial:'-'}}</td>
                                                                                <td>{{history.network_address!==undefined?history.network_address:'-'}}</td>
                                                                                <td>{{history.location_description!==undefined?history.location_description:'-'}}</td>
                                                                                <td>{{history.version_module_electronic!==undefined?history.version_module_electronic:'-'}}</td>
                                                                                <td>{{history.version_parameterization!==undefined?history.version_parameterization:'-'}}</td>
                                                                                <!-- <td>{{history.info_radiomodule!==undefined?history.info_radiomodule:'-'}}</td> -->
                                                                                <td>{{history.nomenal_voltage!==undefined?history.nomenal_voltage:'-'}}</td>
                                                                                <td>{{history.nomenal_current!==undefined?history.nomenal_current:'-'}}</td>
                                                                                <td>{{history.maximal_current!==undefined?history.maximal_current:'-'}}</td>
                                                                                <td>{{parseCodeModel(history.code_model)}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_info=1" ng-model="step_data_info">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_info=count_data_info+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_info2&&storage.devices.select_channel_temp._self.device_type==24" ng-class="toggle_sticky.data_info2?'zoomIn animated':''" id="data_info2" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Информация о счетчике блок 2</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryInfoSPBZIP2','Информация о счетчике блок 1',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_info2=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryInfoSPBZIP2">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="17">Информация о счетчике блок 2 {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>Error 1</th>
                                                                                <th>Error 2</th>
                                                                                <th>Error 3</th>
                                                                                <th>Error 4</th>
                                                                                <th>Error 5</th>
                                                                                <th>Диагностика</th>
                                                                                <th>Статус</th>
                                                                                <th>Смена сезонов</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_info2' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,10] | orderBy:'-time' | limitTo:my_limit_info2()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.code_error_1!==undefined?history.code_error_1:'-'}}</td>
                                                                                <td>{{history.code_error_2!==undefined?history.code_error_2:'-'}}</td>
                                                                                <td>{{history.code_error_3!==undefined?history.code_error_3:'-'}}</td>
                                                                                <td>{{history.code_error_4!==undefined?history.code_error_4:'-'}}</td>
                                                                                <td>{{history.code_error_5!==undefined?history.code_error_5:'-'}}</td>
                                                                                <td>{{history.diagnostic_codes!==undefined?history.diagnostic_codes:'-'}}</td>
                                                                                <td>{{history.status_state!==undefined?history.status_state:'-'}}</td>
                                                                                <td>{{history.flag_translation_time==1?'Да':history.flag_translation_time==0?'Нет':'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_info2=1" ng-model="step_data_info2">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_info2=count_data_info2+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_jp&&storage.devices.select_channel_temp._self.device_type==24" ng-class="toggle_sticky.data_jp?'zoomIn animated':''" id="data_jp" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Режим функционирования журнала фиксаций превышения мощности</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryJPSPBZIP','Режим функционирования журнала фиксаций превышения мощности',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_jp=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryJPSPBZIP">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="5">Режим функционирования журнала фиксаций превышения мощности {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>Лимит P1, Вт</th>
                                                                                <th>Время усреднения, мин</th>
                                                                                <th>Режим</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_jp' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,11] | orderBy:'-time' | limitTo:my_limit_jp()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.limit_active_power!==undefined?history.limit_active_power:'-'}}</td>
                                                                                <td>{{history.time_minute_averages_power!==undefined?history.time_minute_averages_power:'-'}}</td>
                                                                                <td>{{history.mode_measuring_power!==undefined?history.mode_measuring_power:'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_jp=1" ng-model="step_data_jp">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_jp=count_data_jp+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_rl&&storage.devices.select_channel_temp._self.device_type==24" ng-class="toggle_sticky.data_rl?'zoomIn animated':''" id="data_rl" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Режим функционирования реле управления нагрузкой</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Выгрузить видимое'  ng-click="downloadTable('HistoryRLSPBZIP2','Режим функционирования реле управления нагрузкой',storage.devices.select_channel_temp.name)"><span class="fa fa-download"></span></button>
                                                                    <button ng-click="toggle_sticky.data_rl=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%">
                                                                    <table  class="table table-fixed text-left" id="HistoryRLSPBZIP2">
                                                                        <thead>
                                                                            <tr class="theadForPrint">
                                                                                <th colspan="7">Режим функционирования реле управления нагрузкой {{storage.devices.select_channel_temp.name}}</th>
                                                                            </tr>
                                                                            <tr class="theadForUser">
                                                                                <th>Время прибора учета</th>
                                                                                <th>Лимит P1, Вт</th>
                                                                                <th>Время усреднения, мин</th>
                                                                                <th>Режим</th>
                                                                                <th>Задержка перед включением, мин</th>
                                                                                <th>Количество включений реле в сутки</th>
                                                                                <th>№ Пакета</th>
                                                                            </tr>
                                                                        </thead>
                                                                        <tbody>
                                                                            <tr ng-if='toggle_sticky.data_rl' ng-repeat="history in storage.devices.select_channel_temp.history | filter_history:[storage.date_range,storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type,12] | orderBy:'-time' | limitTo:my_limit_rl()" >
                                                                                <td style='cursor: help; min-width: 150px' title="Время оконечного устройства">{{history.get_time_original()}}</td>
                                                                                <td>{{history.limit_active_power!==undefined?history.limit_active_power:'-'}}</td>
                                                                                <td>{{history.time_minute_averages_power!==undefined?history.time_minute_averages_power:'-'}}</td>
                                                                                <td>{{history.mode_measuring_power!==undefined?history.mode_measuring_power:'-'}}</td>
                                                                                <td>{{history.time_minute_delay_automatic_switching_relay!==undefined?history.time_minute_delay_automatic_switching_relay:'-'}}</td>
                                                                                <td>{{history.count_automatic_switching_relay!==undefined?history.count_automatic_switching_relay:'-'}}</td>
                                                                                <td>{{history.fcnt}}</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                                <div class="footer-cell-content">
                                                                    <label style="margin-left: 1.5rem" class="text-info">Показывать по </label>
                                                                    <select ng-change="count_data_rl=1" ng-model="step_data_rl">
                                                                        <option ng-value="10">10</option>
                                                                        <option ng-value="50">50</option>
                                                                        <option ng-value="100">100</option>
                                                                        <option ng-value="1000">1000</option>
                                                                    </select> 
                                                                    <div class="btn bt-left-panel" ng-click="count_data_rl=count_data_rl+1">Показать еще</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_schedule" ng-class="toggle_sticky.data_schedule?'zoomIn animated':''" id="data_schedule" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Тарифное расписание</h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Запросить тарифное расписание'  ng-click="showModalCommands(8)"><span class="fa fa-cloud-download"></span> Запросить</button>
                                                                    <button ng-click="toggle_sticky.data_schedule=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                    <h4 class='otherInfo' ng-if = 'getStatusTariffSchedule()==2' title='Сезон №{{getTextResponseTariffScheduleSeasone()}}, код "{{getTextResponseTariffScheduleCode()}}, {{getTextResponseTariffScheduleOther()}}'>
                                                                        Сезон №{{getTextResponseTariffScheduleSeasone()}}, код "{{getTextResponseTariffScheduleCode()}}"
                                                                    </h4>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%; max-height: initial;">
                                                                    <div class='col-sm-12' ng-show = 'getStatusTariffSchedule()==0'>
                                                                        <h3>Нет данных</h3>
                                                                        <p>Необходимо запросить тарифное расписание</p>
                                                                    </div>
                                                                    <div class='col-sm-12' ng-show = 'getStatusTariffSchedule()==1'>
                                                                        <h3>Ожидание данных</h3>
                                                                        <p>Ожидаем от электросчётчика ответ на запрос тарифного расписания для сезона №{{getTextRequestTariffScheduleSeasone()}}, по коду тарифного расписания {{getTextRequestTariffScheduleCode()}}</p>
                                                                        <div class='loader' style='margin-top: 0;'>
                                                                            <div class="sk-fading-circle">
                                                                                <div class="sk-circle1 sk-circle"></div>
                                                                                <div class="sk-circle2 sk-circle"></div>
                                                                                <div class="sk-circle3 sk-circle"></div>
                                                                                <div class="sk-circle4 sk-circle"></div>
                                                                                <div class="sk-circle5 sk-circle"></div>
                                                                                <div class="sk-circle6 sk-circle"></div>
                                                                                <div class="sk-circle7 sk-circle"></div>
                                                                                <div class="sk-circle8 sk-circle"></div>
                                                                                <div class="sk-circle9 sk-circle"></div>
                                                                                <div class="sk-circle10 sk-circle"></div>
                                                                                <div class="sk-circle11 sk-circle"></div>
                                                                                <div class="sk-circle12 sk-circle"></div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class='col-sm-12' ng-if = 'getStatusTariffSchedule()==2'>
                                                                        <div class="col-sm-4 container_tariff_schedule "  ng-repeat='i in forRange(1,15)'>
                                                                            <p>Зона №{{i}}</p>
                                                                            <div class='col-sm-12'>
                                                                                <div class='col-sm-6 padding0-left'>
                                                                                    <label>Час окончания</label>
                                                                                    <select class='form-control' ng-model="storage.devices.select_channel_temp.tariff_schedule.response.edit[getParamNameTariffSchedule(i,'hour')]">
                                                                                        <option ng-repeat='h in forRange(0,24)' ng-value='h'>{{h.toString().length>1?h:'0'+h}}</option>
                                                                                    </select>
                                                                                </div>
                                                                                <div class='col-sm-6 padding0-right'>
                                                                                    <label>Минуты окончания</label>
                                                                                    <select class='form-control' ng-model="storage.devices.select_channel_temp.tariff_schedule.response.edit[getParamNameTariffSchedule(i,'minute')]">
                                                                                        <option ng-repeat='m in forRange(0,59)' ng-value='m'>{{m.toString().length>1?m:'0'+m}}</option>
                                                                                    </select>
                                                                                </div>
                                                                            </div>
                                                                            
                                                                            <div class='col-sm-12'>
                                                                                <label>Тариф</label>
                                                                                <select class='form-control' ng-model="storage.devices.select_channel_temp.tariff_schedule.response.edit[getParamNameTariffSchedule(i,'number')]">
                                                                                    <option ng-repeat='t in forRange(0,3)' ng-value='t'>Тариф №{{t+1}}</option>
                                                                                </select>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="footer-cell-content tariff_schedule">
                                                                    <div class="col-sm-6">
                                                                        <button ng-if = 'getStatusTariffSchedule()==2' class="btn btn-default" title='Сбросить изменения'  ng-click="storage.devices.select_channel_temp.tariff_schedule.response.reset()"><span class="fa fa-undo"></span> Сбросить </button>
                                                                        <button ng-if = 'getStatusTariffSchedule()==2||getStatusTariffSchedule()==1' class="btn btn-info" title='Запросить повторно'  ng-click="refreshTariffSchedule()"><span class="fa fa-refresh"></span> Обновить </button>
                                                                    </div>
                                                                    <div class="col-sm-6" style="text-align: right;">
                                                                        <button ng-if = 'getStatusTariffSchedule()==2' class="btn btn-success" title='Сохранить изменения'  ng-click="saveTariffSchedule()"><span class="fa fa-save"></span> Сохранить </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_indication" ng-class="toggle_sticky.data_indication?'zoomIn animated':''" id="data_indication" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Параметры циклической индикации<span style="float: initial;" class='fa fa-info fa fa-info-circle help help_modal_header_span' title="{{getTextResponseIndicationOther()}}" ></span></h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Запросить параметры циклической индикации'  ng-click="this.express_send_command({cmd:12,port:5})"><span class="fa fa-cloud-download"></span> Запросить</button>
                                                                    <button ng-click="toggle_sticky.data_indication=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%; max-height: initial;">
                                                                    <div class='col-sm-12' ng-show = 'getStatusIndication()==0'>
                                                                        <h3>Нет данных</h3>
                                                                        <p>Необходимо запросить параметры циклической индикации</p>
                                                                    </div>
                                                                    <div class='col-sm-12' ng-show = 'getStatusIndication()==1'>
                                                                        <h3>Ожидание данных</h3>
                                                                        <p>Ожидаем от электросчётчика ответ на запрос параметров циклической индикации</p>
                                                                        <div class='loader' style='margin-top: 0;'>
                                                                            <div class="sk-fading-circle">
                                                                                <div class="sk-circle1 sk-circle"></div>
                                                                                <div class="sk-circle2 sk-circle"></div>
                                                                                <div class="sk-circle3 sk-circle"></div>
                                                                                <div class="sk-circle4 sk-circle"></div>
                                                                                <div class="sk-circle5 sk-circle"></div>
                                                                                <div class="sk-circle6 sk-circle"></div>
                                                                                <div class="sk-circle7 sk-circle"></div>
                                                                                <div class="sk-circle8 sk-circle"></div>
                                                                                <div class="sk-circle9 sk-circle"></div>
                                                                                <div class="sk-circle10 sk-circle"></div>
                                                                                <div class="sk-circle11 sk-circle"></div>
                                                                                <div class="sk-circle12 sk-circle"></div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class='col-sm-12' ng-if = 'getStatusIndication()==2'>
                                                                        <div class="col-sm-4 container_tariff_schedule "  ng-repeat='i in forRange(1,31)'>
                                                                            <p>Cтраница индикации №{{i}}</p>
                                                                            <div class='col-sm-12'>
                                                                                <label>Код</label>
                                                                                <select class='form-control' ng-model="storage.devices.select_channel_temp.indication.response.edit[getParamNameIndication(i,'code')]">
                                                                                    <option ng-value='0'>-</option>
                                                                                    <option ng-value='1'>Энергия нарастающим итогом</option>
                                                                                    <option ng-value='2'>Энергия нарастающим итогом по первому тарифу</option>
                                                                                    <option ng-value='3'>Энергия нарастающим итогом по второму тарифу</option>
                                                                                    <option ng-value='4'>Энергия нарастающим итогом по третьему тарифу</option>
                                                                                    <option ng-value='5'>Энергия нарастающим итогом по четвертому тарифу</option>
                                                                                    <option ng-value='6'>Активная суммарная мощность</option>
                                                                                    <option ng-value='7'>Часы</option>
                                                                                    <option ng-value='8'>Дата</option>
                                                                                    <option ng-value='9'>Часы с секундами</option>
                                                                                    <option ng-value='10'>Версия параметризации</option>
                                                                                    <option ng-value='11'>Энергия нарастающим итогом за предыдущий месяц</option>
                                                                                    <option ng-value='12'>Энергия нарастающим итогом по 1-му тарифу за предыдущий месяц</option>
                                                                                    <option ng-value='13'>Энергия нарастающим итогом по 2-му тарифу за предыдущий месяц</option>
                                                                                    <option ng-value='14'>Энергия нарастающим итогом по 3-му тарифу за предыдущий месяц</option>
                                                                                    <option ng-value='15'>Энергия нарастающим итогом по 4-му тарифу за предыдущий месяц</option>
                                                                                    <option ng-value='16'>Дата предыдущего месяца</option>
                                                                                    <option ng-value='17'>Активная мощность по фазе A</option>
                                                                                    <option ng-value='18'>Активная мощность по фазе B</option>
                                                                                    <option ng-value='19'>Активная мощность по фазе C</option>
                                                                                    <option ng-value='20'>Версия ПО</option>
                                                                                    <option ng-value='21'>Реактивная мощность по фазе A</option>
                                                                                    <option ng-value='22'>Реактивная мощность по фазе B</option>
                                                                                    <option ng-value='23'>Реактивная мощность по фазе C</option>
                                                                                    <option ng-value='24'>Реактивная суммарная мощность</option>
                                                                                    <option ng-value='25'>Полная мощность по фазе A</option>
                                                                                    <option ng-value='26'>Полная мощность по фазе B</option>
                                                                                    <option ng-value='27'>Полная мощность по фазе C</option>
                                                                                    <option ng-value='28'>Полная суммарная мощность</option>
                                                                                    <option ng-value='29'>Фактор мощности по фазе A</option>
                                                                                    <option ng-value='30'>Фактор мощности по фазе B</option>
                                                                                    <option ng-value='31'>Фактор мощности по фазе C</option>
                                                                                    <option ng-value='32'>Фактор мощности суммарный</option>
                                                                                    <option ng-value='33'>Частота сети</option>
                                                                                    <option ng-value='34'>Напряжение в фазе A</option>
                                                                                    <option ng-value='35'>Напряжение в фазе B</option>
                                                                                    <option ng-value='36'>Напряжение в фазе C</option>
                                                                                    <option ng-value='37'>Ток в фазе A</option>
                                                                                    <option ng-value='38'>Ток в фазе B</option>
                                                                                    <option ng-value='39'>Ток в фазе C</option>
                                                                                    <option ng-value='254'>Конец таблицы</option> 
                                                                                </select>
                                                                            </div>
                                                                            <div class='col-sm-12'>
                                                                                <label>Время отображения, в секундах</label>
                                                                                <select class='form-control' ng-model="storage.devices.select_channel_temp.indication.response.edit[getParamNameIndication(i,'time')]">
                                                                                    <option ng-repeat='t in forRange(0,254)' ng-value='t'>{{t}}</option>
                                                                                </select>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="footer-cell-content tariff_schedule">
                                                                    <div class="col-sm-6">
                                                                        <button ng-if = 'getStatusIndication()==2' class="btn btn-default" title='Сбросить изменения'  ng-click="storage.devices.select_channel_temp.tariff_schedule.response.reset()"><span class="fa fa-undo"></span> Сбросить </button>
                                                                    </div>
                                                                    <div class="col-sm-6" style="text-align: right;">
                                                                        <button ng-if = 'getStatusIndication()==2' class="btn btn-success" title='Сохранить изменения'  ng-click="saveIndication()"><span class="fa fa-save"></span> Сохранить </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div  ng-show="toggle_sticky.data_days" ng-class="toggle_sticky.data_days?'zoomIn animated':''" id="data_days" class="col-sm-12 padding0 toggle_sticky ">
                                                        <div  class="stick stick-data">
                                                            <div class="cell cell-content" ng-if='storage.type_channel_list.get_type_channel(storage.devices.select_channel_temp.type_channel).type==7&&storage.devices.select_channel_temp._self.device_type==24'>
                                                                <div class="head-cell-content">
                                                                    <h3 class="h3-title-cell" >Список специальных дней<span style="float: initial;" class='fa fa-info fa fa-info-circle help help_modal_header_span' title="{{getTextResponseSpecialDaysOther()}}" ></span></h3>
                                                                    <button class="btn btn-success head-cell-content-btn-download" title='Запросить параметры циклической индикации'  ng-click="this.express_send_command({cmd:7,port:5})"><span class="fa fa-cloud-download"></span> Запросить</button>
                                                                    <button ng-click="toggle_sticky.data_days=false" type="button" class="close" ><span aria-hidden="true">&times;</span></button>
                                                                </div>
                                                                <div class="body-cell-content" style="display: inline-block; width: 100%; max-height: initial;">
                                                                    <div class='col-sm-12' ng-show = 'getStatusSpecialDays()==0'>
                                                                        <h3>Нет данных</h3>
                                                                        <p>Необходимо запросить список специальных дней</p>
                                                                    </div>
                                                                    <div class='col-sm-12' ng-show = 'getStatusSpecialDays()==1'>
                                                                        <h3>Ожидание данных</h3>
                                                                        <p>Ожидаем от электросчётчика ответ на запрос списка специальных дней</p>
                                                                        <div class='loader' style='margin-top: 0;'>
                                                                            <div class="sk-fading-circle">
                                                                                <div class="sk-circle1 sk-circle"></div>
                                                                                <div class="sk-circle2 sk-circle"></div>
                                                                                <div class="sk-circle3 sk-circle"></div>
                                                                                <div class="sk-circle4 sk-circle"></div>
                                                                                <div class="sk-circle5 sk-circle"></div>
                                                                                <div class="sk-circle6 sk-circle"></div>
                                                                                <div class="sk-circle7 sk-circle"></div>
                                                                                <div class="sk-circle8 sk-circle"></div>
                                                                                <div class="sk-circle9 sk-circle"></div>
                                                                                <div class="sk-circle10 sk-circle"></div>
                                                                                <div class="sk-circle11 sk-circle"></div>
                                                                                <div class="sk-circle12 sk-circle"></div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class='col-sm-12' ng-if = 'getStatusSpecialDays()==2'>
                                                                        <div class="col-sm-4 container_tariff_schedule "  ng-repeat='i in forRange(1,31)'>
                                                                            <p>Специальный день №{{i}}</p>
                                                                            <div class='col-sm-12'>
                                                                                <label>День месяца</label>
                                                                                <select class='form-control' ng-model="storage.devices.select_channel_temp.special_days.response.edit[getParamNameSpecialDays(i,'day')]">
                                                                                    <option  ng-value='255'>-</option>
                                                                                    <option ng-repeat='m in forRange(1,31)' ng-value='m'>{{m.toString().length>1?m:'0'+m}}</option>
                                                                                </select>
                                                                            </div>
                                                                            <div class='col-sm-12'>
                                                                                <label>Месяц</label>
                                                                                <select class='form-control' ng-model="storage.devices.select_channel_temp.special_days.response.edit[getParamNameSpecialDays(i,'month')]">
                                                                                    <option  ng-value='255'>-</option>
                                                                                    <option ng-value='1' value='1'>Январь</option>
                                                                                    <option ng-value='2' value='2'>Февраль</option>
                                                                                    <option ng-value='3' value='3'>Март</option>
                                                                                    <option ng-value='4' value='4'>Апрель</option>
                                                                                    <option ng-value='5' value='5'>Май</option>
                                                                                    <option ng-value='6' value='6'>Июнь</option>
                                                                                    <option ng-value='7' value='7'>Июль</option>
                                                                                    <option ng-value='8' value='8'>Август</option>
                                                                                    <option ng-value='9' value='9'>Сентябрь</option>
                                                                                    <option ng-value='10' value='10'>Октябрь</option>
                                                                                    <option ng-value='11' value='11'>Ноябрь</option>
                                                                                    <option ng-value='12' value='12'>Декабрь</option>
                                                                                </select>
                                                                            </div>
                                                                            <div class='col-sm-12'>
                                                                                <label>Тип дня</label>
                                                                                <select class='form-control' ng-model="storage.devices.select_channel_temp.special_days.response.edit[getParamNameSpecialDays(i,'type')]">
                                                                                    <option  ng-value='255'>-</option>
                                                                                    <option ng-value='0'>Праздник</option>
                                                                                    <option ng-value='1'>Суббота</option>
                                                                                    <option ng-value='2'>Воскресенье</option>
                                                                                    <option ng-value='3'>Рабочий</option>
                                                                                </select>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="footer-cell-content tariff_schedule">
                                                                    <div class="col-sm-6">
                                                                        <button ng-if = 'getStatusSpecialDays()==2' class="btn btn-default" title='Сбросить изменения'  ng-click="storage.devices.select_channel_temp.tariff_schedule.response.reset()"><span class="fa fa-undo"></span> Сбросить </button>
                                                                    </div>
                                                                    <div class="col-sm-6" style="text-align: right;">
                                                                        <button ng-if = 'getStatusSpecialDays()==2' class="btn btn-success" title='Сохранить изменения'  ng-click="saveSpecialDays()"><span class="fa fa-save"></span> Сохранить </button>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <!-- Контейнеры данных END -->
                                                </p>
                                            </md-content>
                                        </md-tab>
                                        <!-- Страница просмотра данных от устройства END-->
                                        <!-- Страница настроек устройства по воздуху -->
                                        <md-tab label="Настройки" ng-show="checkSettingDevice()" ng-disabled="!checkSettingDevice()">
                                            <md-content class="md-padding" ng-if="checkSettingDevice()">
                                                <p class="md-body-1" >
                                                    <div class="col-sm-12 padding0">
                                                        <span>Последний пакет настроек{{convert_date(storage.devices.select_channel_temp._self.tempSettings.ts)!=="Неизвестно"?" был принят сервером " + convert_date(storage.devices.select_channel_temp._self.settings.ts):" не найден"}}</span>
                                                        <span class="btn fa fa-refresh" title="Обновить" ng-click="refreshSettingsSelectedDevice()"></span>
                                                    </div>
                                                    <div class="col-sm-12 padding0">
                                                        <div class="panel panel-default" ng-show='checkAvailabilityParamSettings([46,49,50,51,52,53,62,16,63,72,114,126])'>
                                                            <div class="panel-heading"> 
                                                                Передача данных
                                                            </div>
                                                            <div class="panel-body">
                                                                <!--Настройки передачи показаний-->
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(49)">
                                                                    <!--49 SETTING_COLLECTION_PERIOD--> 
                                                                    <label>Период накопления данных в состоянии покоя</label>
                                                                    <select ng-class="checkValidParamsSettings(49)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[49].value">
                                                                        <option ng-value="5">Раз в 5 минут</option>
                                                                        <option ng-value="6">Раз в 15 минут</option>
                                                                        <option ng-value="7">Раз в пол часа</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                    </select>
                                                                </div>
                                                                <!--Настройки передачи показаний-->
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(46)">
                                                                    <!--46 SETTING_COLLECTION_PERIOD--> 
                                                                    <label>Период накопления данных в состоянии покоя</label>
                                                                    <select ng-class="checkValidParamsSettings(46)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[46].value">
                                                                        <option ng-value="5">Раз в 5 минут</option>
                                                                        <option ng-value="6">Раз в 15 минут</option>
                                                                        <option ng-value="7">Раз в пол часа</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-6" ng-show="checkAvailabilityParamSettings(50)">
                                                                    <!--50 SETTING_ELECTRO_INFO_PACKET_INFO_PERIOD 1--> 
                                                                    <label>Период накопления пакетов с информацией о счетчике</label>
                                                                    <select ng-class="checkValidParamsSettings(50)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[50].value[0]">
                                                                        <option ng-value="0">Без накоплений</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                        <option ng-value="5">Раз в неделю</option>
                                                                        <option ng-value="6">Раз в месяц</option>
                                                                        <option ng-value="7" ng-if="storage.devices.select_channel_temp._self.device_type == 24 && getVersionSelectedChannel() == 1">Раз в 5 минут</option>
                                                                        <option ng-value="8" ng-if="storage.devices.select_channel_temp._self.device_type == 24 && getVersionSelectedChannel() == 1">Раз в 15 минут</option>
                                                                        <option ng-value="9" ng-if="storage.devices.select_channel_temp._self.device_type == 24 && getVersionSelectedChannel() == 1">Раз в 30 минут</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(50)">
                                                                    <!--50 SETTING_ELECTRO_INFO_PACKET_INFO_PERIOD 2--> 
                                                                    <label>День недели</label>
                                                                    <select ng-class="checkValidParamsSettings(50)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[50].value[1]">
                                                                            <option ng-value="0">Без накоплений</option>
                                                                            <option ng-value="1">Понедельник</option>
                                                                            <option ng-value="2">Вторник</option>
                                                                            <option ng-value="3">Среда</option>
                                                                            <option ng-value="4">Четверг</option>
                                                                            <option ng-value="5">Пятница</option>
                                                                            <option ng-value="6">Суббота</option>
                                                                            <option ng-value="7">Воскресенье</option>
                                                                        </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(50)">
                                                                    <!--50 SETTING_ELECTRO_INFO_PACKET_INFO_PERIOD 3--> 
                                                                    <label>День месяца</label>
                                                                    <input type="number" min='0' max='28' ng-class="checkValidParamsSettings(50)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[50].value[2]">
                                                                </div>
                                                                <!-- <div class="col-sm-6" ng-show="checkAvailabilityParamSettings(51)">
                                                                    <51 SETTING_ELECTRO_INSTANT_PACKET_PERIOD
                                                                    <label>Период накопления мгновенных значений (в часах)</label>
                                                                    <input type="number" min='1' max='24' ng-class="checkValidParamsSettings(51)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[51].value"> 
                                                                </div> -->
                                                                <div class="col-sm-6" ng-show="checkAvailabilityParamSettings(51)">
                                                                    <!--51 SETTING_ELECTRO_INSTANT_PACKET_PERIOD 1--> 
                                                                    <label>Период накопления мгновенных значений</label>
                                                                    <select ng-class="checkValidParamsSettings(51)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[51].value[0]">
                                                                        <option ng-value="0">Без накоплений</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                        <option ng-value="5">Раз в неделю</option>
                                                                        <option ng-value="6">Раз в месяц</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(51)">
                                                                    <!--51 SETTING_ELECTRO_INSTANT_PACKET_PERIOD 2--> 
                                                                    <label>День недели</label>
                                                                    <select ng-class="checkValidParamsSettings(51)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[51].value[1]">
                                                                            <option ng-value="0">Без накоплений</option>
                                                                            <option ng-value="1">Понедельник</option>
                                                                            <option ng-value="2">Вторник</option>
                                                                            <option ng-value="3">Среда</option>
                                                                            <option ng-value="4">Четверг</option>
                                                                            <option ng-value="5">Пятница</option>
                                                                            <option ng-value="6">Суббота</option>
                                                                            <option ng-value="7">Воскресенье</option>
                                                                        </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(51)">
                                                                    <!--51 SETTING_ELECTRO_INSTANT_PACKET_PERIOD 3--> 
                                                                    <label>День месяца</label>
                                                                    <input type="number" min='0' max='28' ng-class="checkValidParamsSettings(51)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[51].value[2]">
                                                                </div>
                                                                <div class="col-sm-6" ng-show="checkAvailabilityParamSettings(52)">
                                                                    <!--52 SETTING_ELECTRO_ENERGY_PACKET_PERIOD 1--> 
                                                                    <label>Период накопления пакетов с накопленной энергией</label>
                                                                    <select ng-class="checkValidParamsSettings(52)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[52].value[0]">
                                                                        <option ng-value="0">Без накоплений</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                        <option ng-value="5">Раз в неделю</option>
                                                                        <option ng-value="6">Раз в месяц</option>

                                                                        <option ng-value="7" ng-if="storage.devices.select_channel_temp._self.device_type == 24 && getVersionSelectedChannel() == 1">Раз в 5 минут</option>
                                                                        <option ng-value="8" ng-if="storage.devices.select_channel_temp._self.device_type == 24 && getVersionSelectedChannel() == 1">Раз в 15 минут</option>
                                                                        <option ng-value="9" ng-if="storage.devices.select_channel_temp._self.device_type == 24 && getVersionSelectedChannel() == 1">Раз в 30 минут</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(52)">
                                                                    <!--52 SETTING_ELECTRO_ENERGY_PACKET_PERIOD 2--> 
                                                                    <label>День недели</label>
                                                                    <select ng-class="checkValidParamsSettings(52)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[52].value[1]">
                                                                        <option ng-value="0">Без накоплений</option>
                                                                        <option ng-value="1">Понедельник</option>
                                                                        <option ng-value="2">Вторник</option>
                                                                        <option ng-value="3">Среда</option>
                                                                        <option ng-value="4">Четверг</option>
                                                                        <option ng-value="5">Пятница</option>
                                                                        <option ng-value="6">Суббота</option>
                                                                        <option ng-value="7">Воскресенье</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(52)">
                                                                    <!--52 SETTING_ELECTRO_ENERGY_PACKET_PERIOD 3--> 
                                                                    <label>День месяца</label>
                                                                    <input type="number" min='0' max='28' ng-class="checkValidParamsSettings(52)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[52].value[2]">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(62)">
                                                                    <!--62 SETTING_LM_MOVE_COLLECTION_PER--> 
                                                                    <label>Период накопления данных в движении</label>
                                                                    <select ng-class="checkValidParamsSettings(62)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[62].value">
                                                                        <option ng-value="8">Раз в минуту</option>
                                                                        <option ng-value="5">Раз в 5 минут</option>
                                                                        <option ng-value="6">Раз в 15 минут</option>
                                                                        <option ng-value="7">Раз в пол часа</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(16)" ng-if="storage.devices.select_channel_temp._self.device_type === 14">
                                                                    <!--16 SETTING_TRANS_PERIOD--> 
                                                                    <label>Период передачи пакетов в состоянии покоя</label>
                                                                    <select ng-class="checkValidParamsSettings(16)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[16].value">
                                                                        <option ng-value="5">Раз в 5 минут</option>
                                                                        <option ng-value="6">Раз в 15 минут</option>
                                                                        <option ng-value="7">Раз в пол часа</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(16)" ng-if="storage.devices.select_channel_temp._self.device_type !== 14">
                                                                    <!--16 SETTING_TRANS_PERIOD--> 
                                                                    <label>Период передачи пакетов</label>
                                                                    <select ng-class="checkValidParamsSettings(16)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[16].value">
                                                                        <option ng-value="5">Раз в 5 минут</option>
                                                                        <option ng-value="6">Раз в 15 минут</option>
                                                                        <option ng-value="7">Раз в пол часа</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(63)">
                                                                    <!--63 SETTING_LM_MOVE_TRANS_PERIOD--> 
                                                                    <label>Период передачи пакетов в движении</label>
                                                                    <select ng-class="checkValidParamsSettings(63)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[63].value">
                                                                        <option ng-value="5">Раз в 5 минут</option>
                                                                        <option ng-value="6">Раз в 15 минут</option>
                                                                        <option ng-value="7">Раз в пол часа</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(78)">
                                                                    <!--78 SETTING_ALARM_COLLECTION_PERIOD--> 
                                                                    <label>Период накопления данных в состоянии тревоги</label>
                                                                    <select ng-class="checkValidParamsSettings(78)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[78].value">
                                                                        <option ng-value="5">Раз в 5 минут</option>
                                                                        <option ng-value="6">Раз в 15 минут</option>
                                                                        <option ng-value="7">Раз в пол часа</option>
                                                                        <option ng-value="1">Раз в час</option>
                                                                        <option ng-value="2">Раз в 6 часов</option>
                                                                        <option ng-value="3">Раз в 12 часов</option>
                                                                        <option ng-value="4">Раз в сутки</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(114)">
                                                                    <!--114 SETTING_ELECTRO_TRANS_PERIOD--> 
                                                                    <label>Период передачи данных электросчётчика (в часах)</label>
                                                                    <input type="number" min='1' max='24' ng-class="checkValidParamsSettings(114)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[114].value"> 
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(53)">
                                                                    <!-- 53 SETTING_ELECTRO_ENABLE_POWER_PROFILE -->
                                                                    <label>Передача профиля мощности  </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(53)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[53].value"  ng-value="0"> 
                                                                            Выключено
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(53)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[53].value"  ng-value="1"> 
                                                                            Включено
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(72)">
                                                                    <!-- 72 SETTING_ELECTRO_ENABLE_SEND_EVENTS -->
                                                                    <label>Передача событий прибора учета  </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(72)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[72].value"  ng-value="0"> 
                                                                            Выключено
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(72)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[72].value"  ng-value="1"> 
                                                                            Включено
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(126)">
                                                                    <!--126 SETTING_TRANS_PERIOD_BY_DAY --> 
                                                                    <label>Период передачи</label>
                                                                    <select ng-class="checkValidParamsSettings(126)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[126].value">
                                                                        <option ng-value="1">1 раз в сутки</option>
                                                                        <option ng-value="2">2 раза в сутки</option>
                                                                        <option ng-value="3">3 раза в сутки</option>
                                                                        <option ng-value="4">4 раза в сутки</option>
                                                                        <option ng-value="5">5 раз в сутки</option>
                                                                        <option ng-value="6">6 раз в сутки</option>
                                                                        <option ng-value="7">7 раз в сутки</option>
                                                                        <option ng-value="8">8 раз в сутки</option>
                                                                        <option ng-value="9">9 раз в сутки</option>
                                                                        <option ng-value="10">10 раз в сутки</option>
                                                                        <option ng-value="11">11 раз в сутки</option>
                                                                        <option ng-value="12">12 раз в сутки</option>
                                                                        <option ng-value="13">13 раз в сутки</option>
                                                                        <option ng-value="14">14 раз в сутки</option>
                                                                        <option ng-value="15">15 раз в сутки</option>
                                                                    </select>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="panel panel-default" ng-show='checkAvailabilityParamSettings([1,3,4,5,8])'>
                                                            <div class="panel-heading"> 
                                                                LoRaWAN 
                                                            </div>
                                                            <div class="panel-body">
                                                                <!--Настройки LoRaWAN-->
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(1)">
                                                                    <!--1 SETTING_FREQ_PLAN--> 
                                                                    <label>Частотный план</label>
                                                                    <select ng-class="checkValidParamsSettings(1)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[1].value">
                                                                        <option ng-if="checkValidSettingsParamDevice(1,1) " ng-value="1">EEU_868</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,2) " ng-value="2">ERU_868</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,3) " ng-value="3">ECUSTOM_868</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,4) " ng-value="4">EAU_915_CH0_7</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,5) " ng-value="5">EAU_915_CH8_15</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,6) " ng-value="6">EAS_923</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,7) " ng-value="7">EKR_920</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,8) " ng-value="8">EIN_865</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,9) " ng-value="9">ECN_779</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,10)" ng-value="10">EUS_915</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,11)" ng-value="11">EUS_915_HIBRYD</option>
                                                                        <option ng-if="checkValidSettingsParamDevice(1,12)" ng-value="12">EKZ_865</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-4" ng-show="checkAvailabilityParamSettings(3)">
                                                                    <!-- 3  SETTING_ACTIVATION_TYPE-->
                                                                    <label>Тип активации   </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(3)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[3].value"  ng-value="1"> 
                                                                            OTAA
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(4)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[3].value"  ng-value="2"> 
                                                                            ABP
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-4" ng-show="checkAvailabilityParamSettings(4)">
                                                                    <!-- 4 SETTING_CONFIRMATION -->
                                                                    <label>Запрашивать подтверждение   </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(4)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[4].value"  ng-value="1"> 
                                                                            С подтверждением 
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(4)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[4].value"  ng-value="2"> 
                                                                            Без подтверждения
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-4" ng-show="checkAvailabilityParamSettings(5)">
                                                                    <!--5 SETTING_ADR--> 
                                                                    <label>Автоматическое управление скоростью</label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(5)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[5].value"  ng-value="1"> 
                                                                            Включено
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(5)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[5].value"  ng-value="2"> 
                                                                            Выключено
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(8)">
                                                                    <!--8 SETTING_NB_TRANS--> 
                                                                    <label>Переповторов</label>
                                                                    <input type="number" min='1' max='15' ng-class="checkValidParamsSettings(8)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[8].value"> 
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="panel panel-default" ng-show='checkAvailabilityParamSettings([12,13,14,15,19,22,33,44,54,55,84,88,89,115,116,117,118,119,120])'>
                                                            <div class="panel-heading"> 
                                                                Индивидуальные
                                                            </div>
                                                            <div class="panel-body">
                                                                <!--Индивидуальные-->
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(12)">
                                                                    <!-- 12 SETTING_INPUT1_MODE -->
                                                                    <label>Режим входа 1 </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(12)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[12].value"  ng-value="1"> 
                                                                            Импульсный
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(12)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[12].value"  ng-value="2"> 
                                                                            Охранный
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(13)">
                                                                    <!-- 13 SETTING_INPUT2_MODE -->
                                                                    <label>Режим входа 2 </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(13)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[13].value"  ng-value="1"> 
                                                                            Импульсный
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(13)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[13].value"  ng-value="2"> 
                                                                            Охранный
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(14)">
                                                                    <!-- 14 SETTING_INPUT3_MODE -->
                                                                    <label>Режим входа 3 </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(14)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[14].value"  ng-value="1"> 
                                                                            Импульсный
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(14)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[14].value"  ng-value="2"> 
                                                                            Охранный
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(15)">
                                                                    <!-- 15 SETTING_INPUT4_MODE -->
                                                                    <label>Режим входа 4 </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(15)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[15].value"  ng-value="1"> 
                                                                            Импульсный
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(15)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[15].value"  ng-value="2"> 
                                                                            Охранный
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(19)">
                                                                    <!-- 19 SETTING_PLUGGED_DEVICE -->
                                                                    <label>Опрашивать подключенные устройства </label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(19)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[19].value"  ng-value="0"> 
                                                                            NO DEVICE
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(19)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[19].value"  ng-value="1"> 
                                                                            MERCURY206
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(22)">
                                                                     <!--22 PLUGGED_DEVICE_ADDRESS--> 
                                                                    <label>Адрес устройства</label>
                                                                    <input type="number" min='0' ng-class="checkValidParamsSettings(22)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[22].value"> 
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(33)">
                                                                    <!--33 SETTING_MBUS_DEVICE_TYPE--> 
                                                                    <label>Тип подключенных устройств</label>
                                                                    <select ng-class="checkValidParamsSettings(33)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[33].value">
                                                                        <option ng-value="0">Не задан</option>
                                                                        <option ng-value="1">Теплоучет 1</option>
                                                                        <option ng-value="2">Итэлма СТЭ 21 Берил</option>
                                                                        <option ng-value="3">Danfoss Sonometer_500</option>
                                                                        <option ng-value="4">ELF_M</option>
                                                                        <option ng-value="5">Weser</option>
                                                                        <option ng-value="6">MULTICAL_801</option>
                                                                        <option ng-value="7">MULTICAL_402</option>
                                                                        <option ng-value="8">Landis Gys</option>
                                                                        <option ng-value="9">Sharky 775</option>
                                                                        <option ng-value="10">Пульсар</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(44)">
                                                                    <!--44 SETTING_SENSOR_SENSIVITY--> 
                                                                    <label>Чувствительность акселерометра</label>
                                                                    <select ng-class="checkValidParamsSettings(44)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[44].value">
                                                                        <option ng-value="1">Низкая</option>
                                                                        <option ng-value="2">Средняя</option>
                                                                        <option ng-value="3">Высокая</option>
                                                                        <option ng-value="4">Отключена</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(54)">
                                                                     <!--54 SETTING_ELECTRO_METER_PASSWORD--> 
                                                                    <label>Пароль доступа</label>
                                                                    <input type="number" min="0" ng-class="checkValidParamsSettings(54)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[54].value"> 
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(55)">
                                                                    <!--55 SETTING_TIMEZONE--> 
                                                                    <label>Часовой пояс в минутах</label>
                                                                    <select ng-class="checkValidParamsSettings(55)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[55].value">
                                                                        <option ng-value="-12*60">UTC-12:00</option>
                                                                        <option ng-value="-11*60">UTC-11:00</option>
                                                                        <option ng-value="-10*60">UTC-10:00</option>
                                                                        <option ng-value="-9.5*60">UTC-9:30</option>
                                                                        <option ng-value="-9*60">UTC-9:00</option>
                                                                        <option ng-value="-8*60">UTC-8:00</option>
                                                                        <option ng-value="-7*60">UTC-7:00</option>
                                                                        <option ng-value="-6*60">UTC-6:00</option>
                                                                        <option ng-value="-5*60">UTC-5:00</option>
                                                                        <option ng-value="-4.5*60">UTC-4:30</option>
                                                                        <option ng-value="-4*60">UTC-4:00</option>
                                                                        <option ng-value="-3*60">UTC-3:00</option>
                                                                        <option ng-value="-3.5*60">UTC-3:30</option>
                                                                        <option ng-value="-2*60">UTC-2:00</option>
                                                                        <option ng-value="-1*60">UTC-1:00</option>
                                                                        <option ng-value="0*60">UTC+0:00</option>
                                                                        <option ng-value="1*60">UTC+1:00</option>
                                                                        <option ng-value="2*60">UTC+2:00</option>
                                                                        <option ng-value="3*60">UTC+3:00</option>
                                                                        <option ng-value="3.5*60">UTC+3:30</option>
                                                                        <option ng-value="4*60">UTC+4:00</option>
                                                                        <option ng-value="4.5*60">UTC+4:30</option>
                                                                        <option ng-value="5*60">UTC+5:00</option>
                                                                        <option ng-value="5.5*60">UTC+5:30</option>
                                                                        <option ng-value="5.75*60">UTC+5:45</option>
                                                                        <option ng-value="6*60">UTC+6:00</option>
                                                                        <option ng-value="6.5*60">UTC+6:30</option>
                                                                        <option ng-value="7*60">UTC+7:00</option>
                                                                        <option ng-value="8*60">UTC+8:00</option>
                                                                        <option ng-value="8.5*60">UTC+8:30</option>
                                                                        <option ng-value="9*60">UTC+9:00</option>
                                                                        <option ng-value="9.5*60">UTC+9:30</option>
                                                                        <option ng-value="10*60">UTC+10:00</option>
                                                                        <option ng-value="10.5*60">UTC+10:30</option>
                                                                        <option ng-value="11*60">UTC+11:00</option>
                                                                        <option ng-value="11.5*60">UTC+11:30</option>
                                                                        <option ng-value="12*60">UTC+12:00</option>
                                                                        <option ng-value="13*60">UTC+13:00</option>
                                                                        <option ng-value="14*60">UTC+14:00</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(80)" >
                                                                    <!--80 SETTING_TEMPERATURE_LIMIT_LOW--> 
                                                                    <label>Нижний порог температуры</label>
                                                                    <input type="number" min="-127" max="127" ng-class="checkValidParamsSettings(80)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[80].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(81)" >
                                                                    <!--81 SETTING_TEMPERATURE_LIMIT_HIGH--> 
                                                                    <label>Верхний порог температуры</label>
                                                                    <input type="number" ng-class="checkValidParamsSettings(81)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[81].value">
                                                                </div>
                                                                
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(85)" ng-if="storage.devices.select_channel_temp._self.device_type == 5">
                                                                    <!--85 SETTING_LIMIT_LOW --> 
                                                                    <!-- <label>Нижний порог показаний ({{storage.devices.select_channel_temp.unit}})</label>
                                                                    <input title='Нижний порог показаний в {{storage.devices.select_channel_temp.unit}} . В случае если считываемый с датчика параметр, опустится ниже данного значения, произойдет событие - превышение лимита и  устройство отправит на сервер тревожное сообщение.' type="number" ng-class="checkValidParamsSettings(85)?'valid':'not_valid'" class="form-control" ng-change="test(storage.devices.select_channel_temp._self.tempSettings.params[85].value)" min_v="{{storage.devices.select_channel_temp.min_v}}" max_v="{{storage.devices.select_channel_temp.max_v}}" ma-to-sensor ng-model="storage.devices.select_channel_temp._self.tempSettings.params[85].value"> -->
                                                                    <label>Нижний порог мА</label>
                                                                    <input type="number" min="200" max="2500" ng-class="checkValidParamsSettings(85)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[85].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(86)" ng-if="storage.devices.select_channel_temp._self.device_type == 5">
                                                                    <!--86 SETTING_LIMIT_HIGH--> 
                                                                    <!-- <label>Верхний порог показаний ({{storage.devices.select_channel_temp.unit}})</label>
                                                                    <input title='Верхний порог показаний в {{storage.devices.select_channel_temp.unit}} .  В случае если считываемый с датчика параметр, превысит  данное значение,  также произойдет событие - превышение лимита и  устройство отправит на сервер тревожное сообщение.' type="number" ng-class="checkValidParamsSettings(86)?'valid':'not_valid'" class="form-control"  min_v="{{storage.devices.select_channel_temp.min_v}}" max_v="{{storage.devices.select_channel_temp.max_v}}"  ma-to-sensor ng-model="storage.devices.select_channel_temp._self.tempSettings.params[86].value"> -->
                                                                    <label>Верхний порог мА</label>
                                                                    <input type="number" min="200" max="2500" ng-class="checkValidParamsSettings(86)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[86].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(85)" ng-if="storage.devices.select_channel_temp._self.device_type != 5">
                                                                    <!--85 SETTING_LIMIT_LOW --> 
                                                                    <label>Нижний порог</label>
                                                                    <input type="number" min="-32768" max="32767" ng-class="checkValidParamsSettings(85)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[85].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(86)" ng-if="storage.devices.select_channel_temp._self.device_type != 5">
                                                                    <!--86 SETTING_LIMIT_HIGH--> 
                                                                    <label>Верхний порог</label>
                                                                    <input type="number" min="-127" max="127" ng-class="checkValidParamsSettings(86)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[86].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(84)">
                                                                     <!--54 SETTING_LIMIT_POWER--> 
                                                                    <label>Лимит мощности (Вт)</label>
                                                                    <input type="number" min="0" ng-class="checkValidParamsSettings(84)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[84].value"> 
                                                                </div>
                                
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(88)">
                                                                    <!--88 SETTING_HUMID_LIMIT_LOW --> 
                                                                    <label>Нижний порог влажности %</label>
                                                                    <input type="number" min="0" max="100" ng-class="checkValidParamsSettings(88)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[88].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(89)">
                                                                    <!--89 SETTING_HUMID_LIMIT_HIGH--> 
                                                                    <label>Верхний порог влажности %</label>
                                                                    <input type="number" min="0" max="100" ng-class="checkValidParamsSettings(89)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[89].value">
                                                                </div>
                                
                                
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(115)">
                                                                    <!--115 SETTING_NOISE_THRESHOLD_LOW --> 
                                                                    <label>Нижний порог уровня шума dB</label>
                                                                    <input type="number" min="0" max="110" ng-class="checkValidParamsSettings(115)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[115].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(116)">
                                                                    <!--116 SETTING_NOISE_THRESHOLD_HI--> 
                                                                    <label>Верхний порог уровня шума dB</label>
                                                                    <input type="number" min="40" max="110" ng-class="checkValidParamsSettings(116)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[116].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(117)">
                                                                    <!--117 SETTING_LIGHT_THRESHOLD_LOW --> 
                                                                    <label>Нижний порог освещенности lux<label>
                                                                    <input type="number" min="10" max="10000" ng-class="checkValidParamsSettings(117)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[117].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(118)">
                                                                    <!--118 SETTING_LIGHT_THRESHOLD_HI--> 
                                                                    <label>Верхний порог освещенности lux<label>
                                                                    <input type="number" min="10" max="10000" ng-class="checkValidParamsSettings(118)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[118].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(119)">
                                                                    <!--119 SETTING_CO2_THRESHOLD_LOW --> 
                                                                    <label>Нижний порог CO2</label>
                                                                    <input type="number" min="0" max="2000" ng-class="checkValidParamsSettings(119)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[119].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(120)">
                                                                    <!--120 SETTING_CO2_THRESHOLD_HI--> 
                                                                    <label>Верхний порог CO2</label>
                                                                    <input type="number" min="0" max="2000" ng-class="checkValidParamsSettings(120)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[120].value">
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="panel panel-default" ng-show='checkAvailabilityParamSettings([38,43,71,79,124])'>
                                                            <div class="panel-heading"> 
                                                                Охрана
                                                            </div>
                                                            <div class="panel-body">
                                                                <!--Настройки охраны-->
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(38)">
                                                                    <!--38 SETTING_INPUT1_GUARD_MODE--> 
                                                                    <label>Режим срабатывания для охранного входа 1</label>
                                                                    <select ng-class="checkValidParamsSettings(38)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[38].value">
                                                                        <option ng-value="1">При замыкании (закрытии)</option>
                                                                        <option ng-value="2">При размыкании (открытии)</option>
                                                                        <option ng-value="3">При замыкании и размыкании (закрытии и открытии)</option>
                                                                        <option ng-value="4">Вход отключен</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(39)">
                                                                    <!--39 SETTING_INPUT2_GUARD_MODE--> 
                                                                    <label>Режим срабатывания для охранного входа 2</label>
                                                                    <select ng-class="checkValidParamsSettings(39)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[39].value">
                                                                        <option ng-value="1">При замыкании (закрытии)</option>
                                                                        <option ng-value="2">При размыкании (открытии)</option>
                                                                        <option ng-value="3">При замыкании и размыкании (закрытии и открытии)</option>
                                                                        <option ng-value="4">Вход отключен</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(43)">
                                                                    <!--43 SETTING_ALARM_THRESHOLD--> 
                                                                    <label>Автопостановка в охрану, через</label>
                                                                    <select ng-class="checkValidParamsSettings(43)?'valid':'not_valid'" class='form-control' ng-model="storage.devices.select_channel_temp._self.tempSettings.params[43].value">
                                                                        <option ng-value="1">1 минуту</option>
                                                                        <option ng-value="2">2 минуты</option>
                                                                        <option ng-value="3">3 минуты</option>
                                                                        <option ng-value="4">4 минуты</option>
                                                                        <option ng-value="5">5 минут</option>
                                                                        <option ng-value="10">10 минут</option>
                                                                        <option ng-value="15">15 минут</option>
                                                                        <option ng-value="30">Полчаса</option>
                                                                        <option ng-value="60">Час</option>
                                                                    </select>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(48)">
                                                                    <!--48 SETTING_TP_HEAT_TIME--> 
                                                                    <label>Время прогрева датчика</label>
                                                                    <input type="number" min="1" max="255" ng-class="checkValidParamsSettings(48)?'valid':'not_valid'" class="form-control" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[48].value">
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(71)">
                                                                     <!--71 SETTING_LM_MOVE_ALARM--> 
                                                                    <label>Генерировать тревогу при каждом начале движения</label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(71)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[71].value"  ng-value="1"> 
                                                                            Генерировать
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(71)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[71].value"  ng-value="2"> 
                                                                            Не генерировать
                                                                        </label>
                                                                    </p>
                                                                </div>
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(79)">
                                                                    <!-- 79 SETTING_INSTANT_SEND -->
                                                                    <label ng-if='storage.devices.select_channel_temp._self.device_type != 23'>В режиме тревоги</label>
                                                                    <label ng-if='storage.devices.select_channel_temp._self.device_type == 23'>Отправка тревог</label>
                                                                    <p style="line-height: 20px">
                                                                        <label ng-class="checkValidParamsSettings(79)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[79].value"  ng-value="1"> 
                                                                            Отправлять данные немедленно
                                                                        </label><br>
                                                                        <label ng-class="checkValidParamsSettings(79)?'valid':'not_valid'">
                                                                            <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[79].value"  ng-value="0"> 
                                                                            Не отправлять данные немедленно
                                                                        </label>
                                                                    </p>
                                                                </div>
                                
                                                                <div class="col-sm-3" ng-show="checkAvailabilityParamSettings(124)">
                                                                   <!-- 124 SETTING_AUTOARMING_MESSAGE_ENABLE-->
                                                                   <label>Передать пакет при автопостановке на охрану</label>
                                                                   <p style="line-height: 20px">
                                                                       <label ng-class="checkValidParamsSettings(124)?'valid':'not_valid'">
                                                                           <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[124].value"  ng-value="0"> 
                                                                           Выключено
                                                                       </label><br>
                                                                       <label ng-class="checkValidParamsSettings(124)?'valid':'not_valid'">
                                                                           <input type="radio" ng-model="storage.devices.select_channel_temp._self.tempSettings.params[124].value"  ng-value="1"> 
                                                                           Включено
                                                                       </label>
                                                                   </p>
                                                               </div>
                                
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-12 padding0">
                                                        <div ng-click="sendRequestSettings()" class="btn btn-default" title="Отправить команду запроса настроек на устройство">Отправить запрос настроек</div>
                                                        
                                                        <button type="button" ng-click="sendSettings()" class="btn btn-success">Отправить на устройство</button>
                                                    </div>
                                                </p>
                                            </md-content>
                                        </md-tab>
                                        <!-- Страница настроек устройства по воздуху End-->
                                        <!-- Страница просмотра диагностической информации об устройстве -->
                                        <md-tab label="Диагностика" ng-show="checkDiagnosticDevice()" ng-disabled="!checkDiagnosticDevice()">
                                            <md-content class="md-padding" ng-if="checkDiagnosticDevice()">
                                                <p class="md-body-1" >
                                                    <div class="col-sm-12 padding0">
                                                        <span>Последний диагностический пакет {{ storage.devices.select_channel_temp._self.getDiagnostic().ts=="-"?" не известен":" был получен: "+storage.devices.select_channel_temp._self.getDiagnostic().ts }}</span>
                                                        <span class="btn fa fa-refresh" title="Обновить" ng-click="refreshDiagnosticSelectedDevice()"></span>
                                                    </div>
                                                    <div class="col-sm-12 padding0">
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-rotate-left icon-device_icon"></span></td>
                                                                            <td class="head-info">Аппаратных рестартов</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getDiagnostic().count_reboot_power }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-repeat icon-device_icon"></span></td>
                                                                            <td class="head-info">Программных рестартов</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getDiagnostic().count_reboot_soft }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-refresh icon-device_icon"></span></td>
                                                                            <td class="head-info">Всего перезагрузок </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getDiagnostic().count_reboot_sum }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-battery icon-device_icon"></span></td>
                                                                            <td class="head-info">Заряд батареи</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getDiagnostic().charge }}%</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-info-circle icon-device_icon"></span></td>
                                                                            <td class="head-info">Текущее состояние</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getDiagnostic().state }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="icon-device_icon">SP</span></td>
                                                                            <td class="head-info">Значение регистра</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getDiagnostic().sp }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-file-text-o icon-device_icon"></span></td>
                                                                            <td class="head-info">Диагностические данные</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getDiagnostic().diagnostic_data }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-12 padding0">
                                                            <div ng-click="sendRequestDiagnostic()" class="btn btn-info" title="Отправить команду запроса диагностического пакета">Отправить запрос диагностического пакета</div>
                                                        </div>
                                                    </div>
                                                </p>
                                            </md-content>
                                        </md-tab>
                                        <!-- Страница просмотра диагностической информации об устройстве End-->
                                        <!-- Страница просмотра информации об устройстве -->
                                        <md-tab label="О устройстве" ng-show="checkInfoDevice()" ng-disabled="!checkInfoDevice()">
                                            <md-content class="md-padding" ng-if="checkInfoDevice()">
                                                <p class="md-body-1">
                                                    <div class="col-sm-12 padding0">
                                                        <!-- <span>Последний информационный пакет {{convert_date(storage.devices.select_channel_temp._self.tempSettings.ts)!=="Неизвестно"?" был принят сервером " + convert_date(storage.devices.select_channel_temp._self.settings.ts):" не найден"}}</span> -->
                                                        <span>Последний информационный пакет {{ storage.devices.select_channel_temp._self.getInfo().ts=="-"?" не известен":" был получен: "+storage.devices.select_channel_temp._self.getInfo().ts }}</span>
                                                        <span class="btn fa fa-refresh" title="Обновить" ng-click="refreshInfoSelectedDevice()"></span>
                                                    </div>
                                                    <div class="col-sm-12 padding0">
                                                        <!-- Инормация
                                                        - Время сервера fa-clock-o
                                                        - Причина fa-commenting-o
                                                        - Код производителя fa-industry
                                                        - Модель устройства fa-thumbs-o-uo
                                                        - Дата выпуска прошивки fa-calendar
                                                        - Версия платы fa-braille
                                                        - Версия прошивки fa-file-code-o
                                                        - Версия протокола fa-sign-out
                                                        - Заряд батареи fa-battery
                                                        - Количество отправленных в эфир пакетов fa-envelope -->
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-clock-o icon-device_icon"></span></td>
                                                                            <td class="head-info">Время сервера</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().ts }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-commenting-o icon-device_icon"></span></td>
                                                                            <td class="head-info">Причина</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().reason }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-industry icon-device_icon"></span></td>
                                                                            <td class="head-info">Код производителя</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().code_manufacture }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-thumbs-o-up icon-device_icon"></span></td>
                                                                            <td class="head-info">Модель устройства</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().model_device }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-calendar icon-device_icon"></span></td>
                                                                            <td class="head-info">Дата выпуска прошивки</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().release_date }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-braille icon-device_icon"></span></td>
                                                                            <td class="head-info">Версия платы</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().version_module_electronic }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-file-code-o icon-device_icon"></span></td>
                                                                            <td class="head-info">Версия прошивки</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().version_soft_device }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-sign-out icon-device_icon"></span></td>
                                                                            <td class="head-info">Версия протокола</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().version_protocol }}</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-battery icon-device_icon"></span></td>
                                                                            <td class="head-info">Заряд батареи</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().charge }}%</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-xs-4 padding-left0">
                                                            <div   class="block-info block-info-style-1 padding-left0">
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td rowspan="2"><span class="fa fa-envelope icon-device_icon"></span></td>
                                                                            <td class="head-info">Отправленных в эфир пакетов </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td class="body-info">{{ storage.devices.select_channel_temp._self.getInfo().count_package }}шт</td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-12 padding0">
                                                            <div ng-click="sendRequestInfo()" class="btn btn-info" title="Отправить команду запроса информационного пакета">Отправить запрос информационного пакета</div>
                                                        </div>
                                                    </div>
                                                </p>
                                            </md-content>
                                        </md-tab>
                                        <!-- Страница просмотра информации об устройстве End-->
                                    </md-tabs>
                                </md-content>
                            </div>
                            
                            <!-- Служебный контейнер с кнопкой наверх -->
                            <div class="col-sm-12 padding0">
                                <div id="proba" class="col-sm-12 "></div>
                                    <div style="text-align: center;" ng-show="scrollShow" id="bt-scroll-panel" class="col-sm-12 padding0">
                                    <div  class="stick stick-scroll">
                                        <div class="btn bt-left-panel" ng-click="scrollToElHome()">Наверх</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>     
            </div>
            
            
            <div class="page col-sm-12" id="page10" ng-show="check_page=='10'">
                <div ng-show='WS.loader' class='loader'>
                    <div class="sk-fading-circle">
                        <div class="sk-circle1 sk-circle"></div>
                        <div class="sk-circle2 sk-circle"></div>
                        <div class="sk-circle3 sk-circle"></div>
                        <div class="sk-circle4 sk-circle"></div>
                        <div class="sk-circle5 sk-circle"></div>
                        <div class="sk-circle6 sk-circle"></div>
                        <div class="sk-circle7 sk-circle"></div>
                        <div class="sk-circle8 sk-circle"></div>
                        <div class="sk-circle9 sk-circle"></div>
                        <div class="sk-circle10 sk-circle"></div>
                        <div class="sk-circle11 sk-circle"></div>
                        <div class="sk-circle12 sk-circle"></div>
                        </div>
                </div>
                <div ng-hide='WS.loader' class="page-conteiner col-sm-12 padding0">
                    <div class="content-page col-sm-12 editDevice">
                        <div class="col-sm-12 padding0">
                            <div class="col-sm-12 padding0" ng-show='editDevice.edit'>
                                <h4 style="font-family: monospace">{{editDevice.level_1.name_level_1}} <span class="fa fa-angle-right"></span> {{editDevice.level_2}} <span class="fa fa-angle-right"></span> {{editDevice.name}}, {{editDevice.device.devEui}}</h4>
                            </div>
                            <div class="col-sm-12 padding0" ng-show='!editDevice.edit'>
                                <h4 style="font-family: monospace; padding: 0 15px;">Клонирование</h4>
                            </div>
                        </div>
                        <div ng-cloak class='col-sm-12 padding0'>
                            <md-content>
                                <md-tabs md-dynamic-height md-border-bottom md-selected='setting_page'>
                                    <md-tab label="Основные">
                                        <md-content class="md-padding">
                                            <!-- <h2 class="md-display-1">Основные</h2> -->
                                            <p class="md-body-1">
                                                <div class="col-sm-4">
                                                    <label>Название Объекта</label>
                                                    <input type="text" class="form-control" ng-class="editDevice.valid_name_level_1()?'valid':'not_valid'"  data-auto-select="true"  data-min-length="0" ng-change="editDevice.refresh()"  data-html="1" bs-options="level_1.name_level_1  for level_1 in storage.map_nav.level_1_list" placeholder="Название Объекта"  title="Название Объекта" ng-model="editDevice.level_1.name_level_1" bs-typeahead>
                                                </div>
                                                <div class="col-sm-8">
                                                    <label>Адрес Объекта</label>
                                                    <input type="text" class="form-control" ng-class="editDevice.valid_address_level_1()?'valid':'not_valid'" ng-autocomplete ng-model="editDevice.level_1.address_level_1" placeholder="Адрес Объекта"  title="Адрес Объекта" >
                                                </div>
                                                <div class="col-sm-6">
                                                        <label>Помещение</label>
                                                        <input type="text" class="form-control" ng-class="editDevice.valid_name_level_2()?'valid':'not_valid'" ng-click='refreshLevel_2()' maxlength="25" data-auto-select="true" data-min-length="0" data-html="1" bs-options="level_2 for level_2 in storage.map_nav.level_2_list | filter_level_2_list:[editDevice.level_1,storage.map_nav.list]" ng-model="editDevice.level_2"  placeholder="Помещение" id="level_2" title="Помещение" bs-typeahead>
                                                </div>
                                                <div class="col-sm-6">
                                                        <label>Название прибора</label>
                                                        <input type="text" class="form-control" ng-class="editDevice.valid_name()?'valid':'not_valid'" maxlength="25" placeholder="Название прибора"  title="Название прибора" ng-model="editDevice.name">
                                                    </div>
                                                    <div class='col-sm-6'>
                                                        <label>Радиомодем</label>
                                                        <select ng-disabled="editDevice.edit" ng-class="editDevice.device!=undefined&&editDevice.valid_devEui()?'valid':'not_valid'" ng-model="editDevice.device" ng-change="edit_change_device()"  placeholder="Радиомодем" title="Выбор радиомодема" class="form-control">
                                                            <option title="{{device.devEui}}" ng-repeat="device in storage.devices.devices_list" ng-value="device">{{device.devName}}</option>
                                                        </select>
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.devEui&&(editDevice.device.device_type==1||editDevice.device.device_type==11||editDevice.device.device_type==2||editDevice.device.device_type==3||editDevice.device.device_type==18)" >
                                                        <label>К каналу подключен </label>
                                                        <select ng-model="editDevice.type_channel" ng-class="editDevice.valid_type_channel()?'valid':'not_valid'"  placeholder="Подключен" title="Подключен к каналу" class="form-control">
                                                            <option ng-if='type_channel.device_type.indexOf(1)>-1||type_channel.device_type.indexOf(11)>-1||type_channel.device_type.indexOf(2)>-1||(editDevice.device.device_type==3&&type_channel.device_type.indexOf(3)>-1)' ng-repeat="type_channel in storage.type_channel_list.list" ng-value="type_channel">{{type_channel.name}} </option>
                                                        </select>
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==6">
                                                        <label>Название магнита</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_instrument()?'valid':'not_valid'" placeholder="Название магнитного датчика"  title="Название магнитного датчика" ng-model="editDevice.instrument">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==6&&editDevice.version==1">
                                                        <label>Название магнита</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_instrument2()?'valid':'not_valid'" placeholder="Название магнитного датчика 2"  title="Название магнитного датчика 2" ng-model="editDevice.instrument2">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==5">
                                                        <label>Измеряемый параметр</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_instrument()?'valid':'not_valid'" placeholder="Измеряемый параметр"  title="Измеряемый параметр" ng-model="editDevice.instrument">
                                                </div>
                    
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==4">
                                                        <label>Название охранного входа</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_security_name()?'valid':'not_valid'" placeholder="Название охранного входа"  title="Название охранного входа" ng-model="editDevice.security_name">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==14">
                                                    <label>Название тревоги</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_security_name()?'valid':'not_valid'" placeholder="Название тревоги"  title="Название тревоги" ng-model="editDevice.security_name">
                                                </div>
                    
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==15">
                                                    <label>Поставщик</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_provider()?'valid':'not_valid'" placeholder="Поставщик"  title="Поставщик" ng-model="editDevice.provider">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==15">
                                                    <label>Груз</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_cargo()?'valid':'not_valid'" placeholder="Груз"  title="Груз" ng-model="editDevice.cargo">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==4||(editDevice.device.device_type==15&&editDevice.version==0)">
                                                    <label>Название датчика холла 1</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_hall_1_name()?'valid':'not_valid'" placeholder="Название датчика холла 1"  title="Название датчика холла 1" ng-model="editDevice.hall_1_name">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==4">
                                                    <label>Название датчика холла 2</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_hall_2_name()?'valid':'not_valid'" placeholder="Название датчика холла 2"  title="Название датчика холла 2" ng-model="editDevice.hall_2_name">
                                                </div>
                                                
                                                <div class='col-sm-3 ' ng-show="editDevice.device.device_type==3&&editDevice.type_channel.type==9">
                                                    <label>№ на шине</label>
                                                    <select ng-disabled="editDevice.edit" ng-model="editDevice.num_channel" ng-class="editDevice.valid_num_channel()?'valid':'not_valid'" placeholder="№ на шине" title="Номер на шине" class="form-control">
                                                        <option ng-if="(storage.devices.search_channel_device_list(channel.num_channel,editDevice.device.devEui)==false || (editDevice.device.devEui!=0&&channel.num_channel==editDevice.num_channel&&editDevice.edit))&&channel.num_channel<=6" ng-repeat="channel in editDevice.device.channels" ng-value="channel.num_channel">{{channel.num_channel}}</option>
                                                    </select>
                                                </div>
                                                <div class='col-sm-3 ' ng-show="editDevice.device.device_type==3&&editDevice.type_channel.type==22">
                                                    <label>№ на шине</label>
                                                    <select ng-disabled="editDevice.edit" ng-model="editDevice.num_channel" ng-class="editDevice.valid_num_channel()?'valid':'not_valid'" placeholder="№ Modbus" title="Номер Modbus" class="form-control">
                                                        <option ng-if="(storage.devices.search_channel_device_list(channel.num_channel,editDevice.device.devEui)==false || (editDevice.device.devEui!=0&&channel.num_channel==editDevice.num_channel&&editDevice.edit))&&channel.num_channel>8" ng-repeat="channel in editDevice.device.channels" ng-value="channel.num_channel">{{channel.num_channel}}</option>
                                                    </select>
                                                </div>
                                                <div class='col-sm-3 ' ng-show="editDevice.device.device_type==1||editDevice.device.device_type==11||editDevice.device.device_type==2||editDevice.device.device_type==18">
                                                    <label>Канал </label>
                                                    <select ng-disabled="editDevice.edit" ng-model="editDevice.num_channel" ng-class="editDevice.valid_num_channel()?'valid':'not_valid'" placeholder="Выбор канала" title="Выбор канала" class="form-control">
                                                        <option ng-if="storage.devices.search_channel_device_list(channel.num_channel,editDevice.device.devEui)==false || (editDevice.device.devEui!=0&&channel.num_channel==editDevice.num_channel)" ng-repeat="channel in editDevice.device.channels" ng-value="channel.num_channel">{{channel.num_channel}} канал</option>
                                                    </select>
                                                </div>
                                                <div class='col-sm-3 ' ng-show="editDevice.device.device_type==3&&(editDevice.type_channel.type==1||editDevice.type_channel.type==2)">
                                                    <label>Канал </label>
                                                    <select ng-disabled="editDevice.edit" ng-model="editDevice.num_channel" ng-class="editDevice.valid_num_channel()?'valid':'not_valid'" placeholder="Выбор канала" title="Выбор канала" class="form-control">
                                                        <option ng-if="storage.devices.search_channel_device_list(7,editDevice.device.devEui)==false || (editDevice.device.devEui!=0&&7==editDevice.num_channel)"  ng-value="7">1 канал</option>
                                                        <option ng-if="storage.devices.search_channel_device_list(8,editDevice.device.devEui)==false || (editDevice.device.devEui!=0&&8==editDevice.num_channel)"  ng-value="8">2 канал</option>
                                                    </select>
                                                </div>
                                                <div class='col-sm-3'  ng-show="editDevice.device.devEui&&editDevice.device.device_type!=9" >
                                                        <label>Цвет</label>
                                                        <md-select ng-model="editDevice.color" ng-style="{background:editDevice.color.hex}" ng-class="editDevice.valid_color()?'valid':'not_valid'">
                                                            <md-option ng-value='color' ng-repeat='color in storage.color_list.list' ng-style="{background:color.hex}"></md-option>
                                                        </md-select>
                                                        <!-- <ol   class="nya-bs-select" ng-model="editDevice.color" ng-class="editDevice.valid_color()?'valid':'not_valid'">
                                                            <li  nya-bs-option="color in storage.color_list.list" >
                                                            <a>
                                                                <span class="color" ng-style="{background:color.hex}">
                    
                                                                </span>
                                                            </a>
                                                            </li>
                                                        </ol> -->
                                                </div>
                                                <div class='col-sm-3' ng-show="(editDevice.device.device_type==12 || editDevice.device.device_type==27)&&editDevice.device.devEui" >
                                                    <label>Кол. тарифов</label>
                                                    <select ng-model="editDevice.count_rate" ng-class="editDevice.valid_count_rate()?'valid':'not_valid'"  placeholder="Тарифов" title="Выбор количества тарифов" class="form-control">
                                                        <option value="1">1</option>
                                                        <option value="2">2</option>
                                                        <option value="3">3</option>
                                                        <option value="4">4</option>
                                                    </select>
                                                </div>
                                                <div class='col-sm-6' ng-show="(editDevice.device.device_type==12 || editDevice.device.device_type==27)&&editDevice.device.devEui" >
                                                    <label>Отображать как счетчик</label>
                                                    <select ng-model="editDevice.type_meter" placeholder="Отображать как счетчик" title="Отображать как счетчик" class="form-control">
                                                        <option value="0" ng-value='0'>Другой</option>
                                                        <option ng-show='editDevice.device.device_type!=27' value="1" ng-value='1'>ЦЭ 2726А</option>
                                                        <option ng-show='editDevice.device.device_type!=27' value="2" ng-value='2'>ЦЭ 2727А</option>
                                                        <option ng-show='editDevice.device.device_type!=27' value="3" ng-value='3'>Меркурий 206</option>
                                                        <option ng-show='editDevice.device.device_type!=27' value="4" ng-value='4'>Меркурий 200.02</option>
                                                        <option ng-show='editDevice.device.device_type!=27' value="5" ng-value='5'>Топаз 104/105</option>
                                                        <option ng-show='editDevice.device.device_type!=27' value="6" ng-value='6'>Меркурий 206 (Инкотекс)</option>
                    
                                                        <option ng-show='editDevice.device.device_type==27' value="7" ng-value='7'>Меркурий 203.2TD</option>
                                                        <option ng-show='editDevice.device.device_type==27' value="8" ng-value='8'>Меркурий 204</option>
                                                        <option ng-show='editDevice.device.device_type==27' value="9" ng-value='9'>Меркурий 208</option>
                                                        <option ng-show='editDevice.device.device_type==27' value="10" ng-value='10'>Меркурий 230</option>
                                                        <option ng-show='editDevice.device.device_type==27' value="11" ng-value='11'>Меркурий 231</option>
                                                        <option ng-show='editDevice.device.device_type==27' value="12" ng-value='12'>Меркурий 233</option>
                                                        <option ng-show='editDevice.device.device_type==27' value="13" ng-value='13'>Меркурий 234</option>
                                                        <option ng-show='editDevice.device.device_type==27' value="14" ng-value='14'>Меркурий 236</option>
                                                        <option ng-show='editDevice.device.device_type==27' value="15" ng-value='15'>Меркурий 238</option>
                                                    </select>
                                                </div>
                                                <div class='col-sm-3' ng-show="editDevice.device.device_type==5">
                                                    <label>Ед. изм.</label>
                                                    <input type="text" maxlength="25" ng-class="editDevice.valid_unit()?'valid':'not_valid'" class="form-control" placeholder="Ед. изм."  title="Единица измерения" ng-model="editDevice.unit">
                                                </div>
                                                <div class='col-sm-3' ng-show="editDevice.device.device_type==5">
                                                    <label>Значение 4мА</label>
                                                    <input type="text" ng-class="editDevice.valid_min_v()?'valid':'not_valid'" class="form-control" ng-change="changeRangeValue()" placeholder="Значение 4мА"  title="Значение для тока 4мА" ng-model="editDevice.min_v">
                                                </div>
                                                <div class='col-sm-3' ng-show="editDevice.device.device_type==5">
                                                    <label>Значение 20мА</label>
                                                    <input type="text" ng-class="editDevice.valid_max_v()?'valid':'not_valid'" class="form-control" placeholder="Значение 20мА" ng-change="changeRangeValue()"  title="Значение для тока 20мА" ng-model="editDevice.max_v">
                                                </div>
                                                <div class='col-sm-12' ng-show="editDevice.device.device_type==5&&editDevice.valid_range_value()&&editDevice.version==0">
                                                    <label>Нормальные показания</label>
                                                    <rzslider class="custom-slider" rz-slider-model="slider_val.minValue"
                                                    rz-slider-high="slider_val.maxValue"
                                                    rz-slider-options="slider_val.options"></rzslider>
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==5||editDevice.device.device_type==23">
                                                    <label>Название охранного входа 1</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_security_name()?'valid':'not_valid'" placeholder="Название охранного входа 1"  title="Название охранного входа 1" ng-model="editDevice.security_name">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==5||editDevice.device.device_type==23">
                                                    <label>Название охранного входа 2</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_security_name_2()?'valid':'not_valid'" placeholder="Название охранного входа 2"  title="Название охранного входа 2" ng-model="editDevice.security_name_2">
                                                </div>
                    
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==29">
                                                    <label>Измеряемый параметр</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_instrument()?'valid':'not_valid'" placeholder="Измеряемый параметр"  title="Измеряемый параметр" ng-model="editDevice.instrument">
                                                </div>
                                                <div class='col-sm-3' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==29">
                                                    <label>Ед. изм.</label>
                                                    <input type="text" maxlength="25" ng-class="editDevice.valid_unit()?'valid':'not_valid'" class="form-control" placeholder="Ед. изм."  title="Единица измерения" ng-model="editDevice.unit">
                                                </div>
                                                <div class='col-sm-3' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==29">
                                                    <label>Значение 0мВ</label>
                                                    <input type="text" ng-class="editDevice.valid_min_v()?'valid':'not_valid'" class="form-control"  placeholder="Значение 0мВ"  title="Значение 0мВ"  ng-model="editDevice.min_v">
                                                </div>
                                                <div class='col-sm-3' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==29">
                                                    <label>Значение 21мВ</label>
                                                    <input type="text" ng-class="editDevice.valid_max_v()?'valid':'not_valid'" class="form-control"  placeholder="Значение 21мВ"  title="Значение 21мВ" ng-model="editDevice.max_v">
                                                </div>
                    
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==28" ng-repeat='i in forRange(1,10)'>
                                                    <label>Название датчика температуры №{{i}}</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_temperature_sensor_name(i)?'valid':'not_valid'" placeholder="Название датчика температуры №{{i}}"  title="Название датчика температуры №{{i}}" ng-model="editDevice['temperature_sensor_name_'+i]">
                                                </div>
                    
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==5">
                                                    <label>Название выхода 1</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_sensor_name_1()?'valid':'not_valid'" placeholder="Название выхода 1"  title="Название выхода 1" ng-model="editDevice.sensor_name_1">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.device_type==5">
                                                    <label>Название выхода 2</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_sensor_name_2()?'valid':'not_valid'" placeholder="Название выхода 2"  title="Название выхода 1" ng-model="editDevice.sensor_name_2">
                                                </div>
                                                <div class='col-sm-9' ng-show="editDevice.device.device_type==4&&editDevice.version==0">
                                                    <label>Нормальная температура</label>
                                                    <rzslider class="custom-slider" rz-slider-model="slider.minValue"
                                                    rz-slider-high="slider.maxValue"
                                                    rz-slider-options="slider.options"></rzslider>
                                                </div>
                                                <div class='col-sm-6'ng-show="editDevice.device.devEui" >
                                                    <label>Состояние устройства </label>
                                                    <select ng-model="editDevice.status" ng-class="editDevice.valid_status()?'valid':'not_valid'"  placeholder="Выбор состояния устройства" title="Выбор состояния подключенного устройства" class="form-control">
                                                        <option ng-repeat="status in storage.status_channel_list.list" ng-value="status.id">{{status.name}} </option>
                                                    </select>
                                                </div>
                                                
                                                <div class='col-sm-6'ng-show="editDevice.device.devEui&&(editDevice.device.device_type==12||editDevice.device.device_type==24||editDevice.device.device_type==27||(editDevice.device.device_type==3&&editDevice.type_channel&&editDevice.type_channel.type==9))" >
                                                    <label>Количество фаз   </label>
                                                    <p style="line-height: 36px"><label ng-class="editDevice.valid_count_phase()?'valid':'not_valid'"><input type="radio" ng-model="editDevice.count_phase"  ng-value="1"> Однофазный </label><label style="margin-left: 4rem" ng-class="editDevice.valid_count_phase()?'valid':'not_valid'"><input type="radio" ng-model="editDevice.count_phase"  ng-value="3"> Трехфазный</label></p>
                                                </div>
                    
                    
                                                <div class="col-sm-6" ng-show="(editDevice.type_channel.type==1||editDevice.type_channel.type==20||editDevice.type_channel.type==7||editDevice.type_channel.type==8||(editDevice.type_channel&&editDevice.type_channel.type==9))&&editDevice.device.devEui">
                                                    <label>Модель прибора учета</label>
                                                    <input type="text"  class="form-control"   title="Модель прибора учета" ng-model="editDevice.model">
                                                </div>
                                                <div class="col-sm-6" ng-show="(editDevice.type_channel.type==1||editDevice.type_channel.type==4||editDevice.type_channel.type==7||editDevice.type_channel.type==8||(editDevice.type_channel.type&&editDevice.type_channel.type==9))&&editDevice.device.devEui">
                                                    <label>Заводской номер прибора учета</label>
                                                    <input type="text" class="form-control"  title="Заводской номер прибора учета" ng-model="editDevice.serial">
                                                </div>
                                                <div class="col-sm-6" ng-show="showPersonalNum()">
                                                    <label>Номер лицевого счета</label>
                                                    <input type="text" class="form-control"  title="Номер лицевого счета абонента" ng-model="editDevice.personal_num">
                                                </div>
                                                <div class="col-sm-6" ng-class="editDevice.valid_personal_num()?'valid':'not_valid'" ng-show="editDevice.type_channel.type==11&&editDevice.device.devEui">
                                                    <label>Номер накладной</label>
                                                    <input type="text" class="form-control"  title="Номер накладной" ng-model="editDevice.personal_num">
                                                </div>
                                                <div class="col-sm-6" ng-show="editDevice.type_channel.type==11&&editDevice.device.devEui">
                                                    <label>Тип груза</label>
                                                    <select ng-model="editDevice.typeCargo" ng-class="editDevice.valid_typeCargo()?'valid':'not_valid'" ng-change='changeTypeCargo()'  placeholder="Выбор типа груза" title="Выбор типа груза" class="form-control">
                                                            <option  ng-value='type.id'  ng-repeat="type in storage.type_cargo_list">{{type.name}}</option>
                                                    </select>
                                                </div>
                    
                                                <div class="col-sm-6" ng-show="(editDevice.type_channel.type==4)&&editDevice.device.devEui">
                                                    <label>Вода</label>
                                                    <select ng-model="editDevice.water" ng-class="editDevice.valid_water()?'valid':'not_valid'" ng-change='changeWater()'  placeholder="Выбор воды" title="Выбор воды" class="form-control">
                                                            <option  ng-value='1' value='1'>Горячая </option>
                                                            <option  ng-value='2' value='2'>Холодная </option>
                                                    </select>
                                                </div>
                                                <div class="col-sm-6" ng-show="editDevice.type_channel.type==1&&editDevice.device.devEui">
                                                    <label> Импульсов {{' на '+editDevice.type_channel.unit}}</label>
                                                    <input type="text" ng-class="editDevice.valid_division()?'valid':'not_valid'" class="form-control" placeholder="Импульсов" title="Количество импульсов {{' на '+editDevice.type_channel.unit}}" ng-model="editDevice.division">
                                                </div>
                                                <div class="col-sm-6" ng-show="editDevice.type_channel.type==1&&editDevice.device.devEui">
                                                    <label>Начальные показания({{editDevice.type_channel.unit}})</label>
                                                    <input type="text" ng-class="editDevice.valid_init_value()?'valid':'not_valid'" class="form-control" placeholder="Начальные показания({{editDevice.type_channel.unit}})" title="Начальные показания({{editDevice.type_channel.unit}})" ng-model="editDevice.init_value">
                                                </div>
                                                <div class="col-sm-6" ng-if='editDevice.type_channel.id==1||editDevice.type_channel.id==16' ng-show="editDevice.device.devEui"> 
                                                    <label>Коэффициент трансформации</label>
                                                    <input type="text" ng-class="editDevice.vega_valid.isNumber(editDevice.kt)?'valid':'not_valid'" class="form-control" placeholder="Коэффициент трансформации" title="Коэффициент трансформации" ng-model="editDevice.kt">
                                                </div>
                                                <div class="col-sm-6" ng-show="showLastDate()">
                                                    <label>Дата поверки</label>
                                                    <md-datepicker ng-class="editDevice.valid_last_date()?'valid':'not_valid'" id='last_date' title="Последняя дата поверки" ng-model="editDevice.last_date"></md-datepicker>
                                                    <!-- <input type="text" ng-class="editDevice.valid_last_date()?'valid':'not_valid'" bs-datepicker data-date-format="dd.MM.yyyy" class="form-control" id='last_date'  title="Последняя дата поверки" ng-model="editDevice.last_date"> -->
                                                </div>
                                                <div class="col-sm-6" ng-show="editDevice.type_channel.type==11&&editDevice.device.devEui">
                                                    <label>Дата отгрузки</label>
                                                    <md-datepicker title="Дата отгрузки" ng-model="editDevice.date_shipment"></md-datepicker>
                                                    <!-- <input type="text"  bs-datepicker data-date-format="dd.MM.yyyy" class="form-control"  title="Дата отгрузки" ng-model="editDevice.date_shipment"> -->
                                                </div>
                                                <div class="col-sm-6" ng-show="(editDevice.type_channel.type==1||editDevice.type_channel.type==29)&&editDevice.device.devEui">
                                                    <label>Дата монтажа</label>
                                                    <md-datepicker  title="Дата монтажа" ng-model="editDevice.date_installation"></md-datepicker>
                                                    <!-- <input type="text"  bs-datepicker data-date-format="dd.MM.yyyy" class="form-control" id='last_date'  title="Дата монтажа" ng-model="editDevice.date_installation"> -->
                                                </div>
                                                <div class="col-sm-6" ng-show="showCalibInterval()">
                                                    <label>Межповерочный интервал, лет</label>
                                                    <input type="text" class="form-control" ng-class="editDevice.valid_calib_interval()?'valid':'not_valid'" title="Межповерочный интервал" ng-model="editDevice.calib_interval">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.type_channel.type==8&&editDevice.device.device_type!=17">
                                                    <label>Название входа 1</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_name_sensor_in_1()?'valid':'not_valid'" placeholder="Название входа 1"  title="Название входа 1" ng-model="editDevice.name_sensor_in_1">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.type_channel.type==8&&editDevice.device.device_type!=17">
                                                    <label>Название входа 2</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_name_sensor_in_2()?'valid':'not_valid'" placeholder="Название входа 2"  title="Название входа 2" ng-model="editDevice.name_sensor_in_2">
                                                </div>
                
                                                <div class='col-sm-6' ng-show="editDevice.type_channel.type==8&&editDevice.device.device_type!=17">
                                                    <label>Название выхода 1</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_name_sensor_out_1()?'valid':'not_valid'" placeholder="Название выхода 1"  title="Название выхода 1" ng-model="editDevice.name_sensor_out_1">
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.type_channel.type==8&&editDevice.device.device_type!=17">
                                                    <label>Название выхода 2</label>
                                                    <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_name_sensor_out_2()?'valid':'not_valid'" placeholder="Название выхода 2"  title="Название выхода 2" ng-model="editDevice.name_sensor_out_2">
                                                </div>
                
                                                <div class='col-sm-6' ng-show="editDevice.device.devEui&&(editDevice.device.device_type==12||editDevice.device.device_type==24||editDevice.device.device_type==27)" >
                                                    <p style="line-height: 40px; margin: 0"><input type="checkbox" ng-model="editDevice.relay" id="relay"> <label for="relay" ng-class="editDevice.valid_relay()?'valid':'not_valid'">Наличие реле </p>
                                                </div>
                                                <div class='col-sm-6' ng-show="editDevice.device.devEui&&(editDevice.device.device_type==12||editDevice.device.device_type==24||editDevice.device.device_type==27)" >
                                                    <p style="line-height: 40px; margin: 0"><input type="checkbox" ng-model="editDevice.display_power_profile" id="display_power_profile">  <label for="display_power_profile" ng-class="editDevice.valid_display_power_profile()?'valid':'not_valid'">Отображать профиль {{getTextNamePowerProfile(editDevice.type_meter)}} </p>
                                                </div>
                                                <div class="col-sm-12" ng-show="showIA()">
                                                    <label ng-if='editDevice.type_channel.type!=20'>Индивидуальный адрес</label>
                                                    <label ng-if='editDevice.type_channel.type==20'>Серийный номер устройства</label>
                                                    <input type="text" class="form-control" ng-class="editDevice.valid_ia() ?'valid':'not_valid'" ng-model="editDevice.ia">
                                                </div>
                                                <div class="col-sm-12" ng-show="editDevice.device.device_type==30">
                                                    <label ng-if='editDevice.type_channel.type==30'>MAC</label>
                                                    <input type="text" class="form-control" ng-class="editDevice.valid_mac()?'valid':'not_valid'" ng-model="editDevice.mac">
                                                </div>
                                                <div class="col-sm-12" ng-show="editDevice.device.device_type==30">
                                                    <label ng-if='editDevice.type_channel.type==30'>Security Key</label>
                                                    <input type="text" class="form-control" ng-class="editDevice.valid_key()?'valid':'not_valid'" ng-model="editDevice.key">
                                                </div>
                                                <div class="col-sm-6" ng-show="checkMultipleVersions()">
                                                    <label>Версия прошивки</label>
                                                    <select ng-model="editDevice.version" ng-change="refreshSlider()" ng-class="editDevice.version!==undefined&&editDevice.version!==''?'valid':'not_valid'"  placeholder="Выбор версии прошивки" title="Выбор версии прошивки" class="form-control">
                                                            <option  ng-value='version.id' ng-repeat="version in getVersions()"> {{version.name}} </option>
                                                    </select>
                                                </div>
                                                
                                                <div class="col-sm-12 " ng-show="editDevice.device.devEui">
                                                    <label>Описание устройства</label>
                                                    <textarea ng-model="editDevice.info_channel" maxlength="200" ng-class="editDevice.valid_comment()?'valid':'not_valid'" placeholder="Описание устройства" title="Описание Подключаемого устройства" class="form-control"></textarea>
                                                </div>
                                            </p>
                                        </md-content>
                                    </md-tab>
                                    <md-tab label="События" ng-disabled='!showEnableDanger()'>
                                        <md-content class="md-padding">
                                            <!-- <h2 class="md-display-1">События</h2> -->
                                            <p class="md-body-1">
                                                <div class="panel panel-default" ng-show="!showEnableDanger()">
                                                    <div class="panel-heading">Настроек событий</div>
                                                    <div class="panel-body">
                                                        В этом устройстве нет
                                                    </div>
                                                </div>
                                                <div class="panel panel-default" ng-show="showEnableDanger()">
                                                    <div class="panel-heading">Общие</div>
                                                    <div class="panel-body">
                                                        <div class='col-sm-12' >
                                                            <p style="line-height: 40px; margin: 0; "><input type="checkbox" ng-model="editDevice.enable_danger" id="enable_danger">  <label for="enable_danger" ng-class="editDevice.valid_enable_danger()?'valid':'not_valid'">Уведомлять о тревогах</label></p>
                                                        </div>
                                                        <div class='col-sm-12' ng-show="editDevice.device.devEui&&editDevice.enable_danger" >
                                                            <p style="line-height: 40px; margin: 0; "><input type="checkbox" ng-model="editDevice.user_message_danger" id="user_message_danger">  <label for="user_message_danger" ng-class="editDevice.valid_user_message_danger()?'valid':'not_valid'">Отправка настраиваемого сообщения</p>
                                                        </div>
                                                        <div class='col-sm-12' ng-show="editDevice.device.devEui&&editDevice.enable_danger" >
                                                            <p style="line-height: 40px; margin: 0; "><input type="checkbox" ng-model="editDevice.app_message_danger" id="app_message_danger">  <label for="app_message_danger" ng-class="editDevice.valid_app_message_danger()?'valid':'not_valid'">Отправка сообщения предустановленного формата</p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="panel panel-default" ng-show="showEnableDanger()&&editDevice.device.devEui&&editDevice.enable_danger">
                                                    <div class="panel-heading">Способы отправки</div>
                                                    <div class="panel-body">
                                                        <div class='col-sm-6'>
                                                            <p style="line-height: 40px; margin: 0;"><input type="checkbox" ng-model="editDevice.sms" id="sms">  <label for="sms" ng-class="editDevice.valid_sms()?'valid':'not_valid'">SMS</p>
                                                        </div>
                                                        <div class='col-sm-6'>
                                                            <p style="line-height: 40px; margin: 0;"><input type="checkbox" ng-model="editDevice.email" id="email">  <label for="email" ng-class="editDevice.valid_email()?'valid':'not_valid'">Email</p>
                                                        </div>
                                                        <div class='col-sm-6'>
                                                            <p style="line-height: 40px; margin: 0;"><input type="checkbox" ng-model="editDevice.telegram" id="telegram">  <label for="telegram" ng-class="editDevice.valid_telegram()?'valid':'not_valid'">Telegram</p>
                                                        </div>
                                                        <div class='col-sm-6'>
                                                            <p style="line-height: 40px; margin: 0;"><input type="checkbox" ng-model="editDevice.voice" id="voice">  <label for="voice" ng-class="editDevice.valid_voice()?'valid':'not_valid'">Голосом</p>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="panel panel-default" ng-show="showEnableDanger()&&editDevice.device.devEui&&editDevice.enable_danger&&(editDevice.sms||editDevice.voice||editDevice.email||editDevice.telegram)">
                                                    <div class="panel-heading">Куда отправлять сообщения</div>
                                                    <div class="panel-body">
                                                        <div class="col-sm-6 " ng-show="editDevice.device.devEui&&(editDevice.enable_danger&&(editDevice.sms||editDevice.voice))">
                                                            <label>Номера телефонов через запятую</label>
                                                            <textarea ng-model="editDevice.telephones" maxlength="200" ng-class="editDevice.valid_telephones()?'valid':'not_valid'" placeholder="79339345827,79139999999" title="Номера телефонов" class="form-control"></textarea>
                                                        </div>
                                                        <div class="col-sm-6 " ng-show="editDevice.device.devEui&&(editDevice.enable_danger&&editDevice.email)">
                                                            <label>Email адреса через запятую</label>
                                                            <textarea ng-model="editDevice.emails" maxlength="200" ng-class="editDevice.valid_emails()?'valid':'not_valid'" placeholder="mail@example.com,mail2@example.ru" title="Email адреса" class="form-control"></textarea>
                                                        </div>
                                                        <div class="col-sm-6 " ng-show="editDevice.device.devEui&&(editDevice.enable_danger&&(editDevice.telegram))">
                                                            <label>Id телеграм чатов</label>
                                                            <textarea ng-model="editDevice.telegram_chats" maxlength="200" ng-class="editDevice.valid_telegram_chats()?'valid':'not_valid'" placeholder="438301000,438311709" title="chat_id telegram" class="form-control"></textarea>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="panel panel-default" ng-show="showEnableDanger()&&editDevice.device.devEui&&editDevice.enable_danger&&(editDevice.sms||editDevice.voice||editDevice.email||editDevice.telegram)&&editDevice.user_message_danger">
                                                    <div class="panel-heading">Настраиваемые сообщения</div>
                                                    <div class="panel-body">
                                                        <div class="col-sm-6 " ng-show="editDevice.device.devEui&&editDevice.enable_danger&&editDevice.sms&&editDevice.user_message_danger">
                                                            <label>SMS сообщение</label>
                                                            <textarea ng-model="editDevice.message_sms" maxlength="70" ng-class="editDevice.valid_message_sms()?'valid':'not_valid'" placeholder="SMS текст" title="SMS текст" class="form-control"></textarea>
                                                        </div>
                                                        <div class="col-sm-6 " ng-show="editDevice.device.devEui&&editDevice.enable_danger&&(editDevice.telegram||editDevice.email)&&editDevice.user_message_danger">
                                                            <label>Cообщение о тревоге (email, telegram)</label>
                                                            <textarea ng-model="editDevice.message_messenger" maxlength="1000" ng-class="editDevice.valid_message_messenger()?'valid':'not_valid'" placeholder="Текст сообщения " title="Текст сообщения" class="form-control"></textarea>
                                                        </div>
                                                        <div class="col-sm-6 " ng-show="editDevice.device.devEui&&editDevice.enable_danger&&editDevice.voice&&editDevice.user_message_danger">
                                                            <label>Текст голосового сообщения</label>
                                                            <textarea ng-model="editDevice.voice_message" maxlength="200" ng-class="editDevice.valid_voice_message()?'valid':'not_valid'" placeholder="Текст голосового сообщения" title="Текст голосового сообщения" class="form-control"></textarea>
                                                        </div>
                                                    </div>
                                                </div>
                                            </p>
                                        </md-content>
                                    </md-tab>
                                </md-tabs>
                            </md-content>
                        </div>
                        <div class="col-sm-12 padding0">
                            <section layout='row'  layout-align='start_sensor center' >
                                <md-button class='md-raised md-accent' ng-click="removeEditDevice()" ng-show='command_list_cookie.delete_device_appdata'>Удалить устройство</md-button>
                                <md-button class='md-raised' ng-click="copy_channel_deviceEdit()">Создать клон</md-button>
                                <md-button class='md-raised md-success' ng-click="saveDevice()" ng-show='command_list_cookie.manage_device_appdata'>Сохранить изменения</md-button>
                            </section>
                        </div>
                    </div>
                </div>     
            </div>
            
            
            <div class="page col-sm-12" id="page10" ng-show="check_page=='11'">
                <div ng-show='WS.loader' class='loader'>
                    <div class="sk-fading-circle">
                        <div class="sk-circle1 sk-circle"></div>
                        <div class="sk-circle2 sk-circle"></div>
                        <div class="sk-circle3 sk-circle"></div>
                        <div class="sk-circle4 sk-circle"></div>
                        <div class="sk-circle5 sk-circle"></div>
                        <div class="sk-circle6 sk-circle"></div>
                        <div class="sk-circle7 sk-circle"></div>
                        <div class="sk-circle8 sk-circle"></div>
                        <div class="sk-circle9 sk-circle"></div>
                        <div class="sk-circle10 sk-circle"></div>
                        <div class="sk-circle11 sk-circle"></div>
                        <div class="sk-circle12 sk-circle"></div>
                        </div>
                </div>
                <div ng-hide='WS.loader' class="page-conteiner col-sm-12 padding0">
                    <div class="content-page col-sm-12 editDevice">
                        <div class="col-sm-12 padding0">
                            <div class="editDevice_header">
                                <div class="btn btn_back_header" ng-click="backPageDeviceEditor()" ng-show="pageDeviceEditor>1" title="Назад"><span class="fa fa-angle-left"></span></div>
                                <span class='fa fa-info-circle help help_modal_header_span' ng-show='pageDeviceEditor>1' id="infoDeviceEditor" title="Информация о подключаемом устройстве" data-container="body" data-html="true" data-placement="bottom"  data-content="{{getDeviceEditorInfo()}}" ng-click="toggleInfoDeviceEditor()"></span>
                                <span class="comment_page_modal">{{getCommentPageDeviceEditor()}}<span>
                            </div>
                        </div>
                        <div style="" class="col-sm-12 padding0">
                            <div class='col-sm-12 col-md-12 col-lg-12 col-xs-12' style='height: 100%' ng-show='pageDeviceEditor==1'>
                                <div class='row_devices_panel_head' style='min-height: 700px'>
                                    <div class="col-sm-4">
                                        <label>Название Объекта</label>
                                        <input type="text" class="form-control" ng-class="editDevice.valid_name_level_1()?'valid':'not_valid'"  data-auto-select="true"  data-min-length="0" ng-change="editDevice.refresh()"  data-html="1" bs-options="level_1.name_level_1  for level_1 in storage.map_nav.level_1_list" placeholder="Название Объекта"  title="Название Объекта" ng-model="editDevice.level_1.name_level_1" bs-typeahead>
                                    </div>
                                    <div class="col-sm-8">
                                        <label>Адрес Объекта</label>
                                        <input type="text" class="form-control" ng-class="editDevice.valid_address_level_1()?'valid':'not_valid'" ng-autocomplete ng-model="editDevice.level_1.address_level_1" placeholder="Адрес Объекта"  title="Адрес Объекта" >
                                    </div>
                                    <div class="col-sm-6">
                                        <label>Помещение</label>
                                        <input type="text" class="form-control" ng-class="editDevice.valid_name_level_2()?'valid':'not_valid'" ng-click='refreshLevel_2()' maxlength="25" data-auto-select="true" data-min-length="0" data-html="1" bs-options="level_2 for level_2 in storage.map_nav.level_2_list | filter_level_2_list:[editDevice.level_1,storage.map_nav.list]" ng-model="editDevice.level_2"  placeholder="Помещение" id="level_2" title="Помещение" bs-typeahead>
                                    </div>
                                    <div class="col-sm-6">
                                            <label>Название прибора</label>
                                        <input type="text" class="form-control" ng-class="editDevice.valid_name()?'valid':'not_valid'" maxlength="25" placeholder="Название прибора"  title="Название прибора" ng-model="editDevice.name">
                                    </div>
                                    <div class='col-sm-6' >
                                        <label>Состояние устройства </label>
                                        <select ng-model="editDevice.status" ng-class="editDevice.valid_status()?'valid':'not_valid'"  placeholder="Выбор состояния устройства" title="Выбор состояния подключенного устройства" class="form-control">
                                            <option ng-repeat="status in storage.status_channel_list.list" ng-value="status.id">{{status.name}} </option>
                                        </select>
                                    </div>
                                    <div class="col-sm-12">
                                        <label>Описание устройства</label>
                                        <textarea ng-model="editDevice.info_channel" maxlength="200" ng-class="editDevice.valid_comment()?'valid':'not_valid'" placeholder="Описание устройства" title="Описание Подключаемого устройства" class="form-control"></textarea>
                                    </div>
                                    <md-button class='md-raised md-success' ng-click="editDevice.basicValid()&&(pageDeviceEditor=2)" ng-show='pageDeviceEditor==1' ng-disabled='!(editDevice.basicValid())' style='margin:15px;float:left;'>Продолжить</md-button>
                                </div>
                            </div>
                            <div class='col-sm-12 col-md-12 col-lg-12 col-xs-12' style='height: 100%' ng-show='pageDeviceEditor==2'>
                                <div class="up_devices_panel">
                                    <div class='up_devices_panel_head search_form'>
                                        <input type="text" class="form-control search_input" placeholder="Поиск устройства" ng-model="filter_device">
                                        <span class="fa fa-search search_span"></span>
                                    </div>
                                    <div class='btn btn_back_header' title='Обновить список устройств' ng-click='refreshDevices()'> <span class='fa fa-refresh'></span> Обновить</div>
                                </div>
                                <div class="left_devices_panel">
                                    <div class="col-sm-12 padding0">
                                        <ul class="ul-novigation-group-device" >
                                            <li class="li-ul-novigation-group-device" title="All devices" ng-class="storage.devices.countSelectedGroup()===0?'active':''" ng-click="storage.devices.unselectAllGroup()">
                                                Все устройства
                                            </li>
                                            <li class="li-ul-novigation-group-device" title="{{group.title}}" ng-class="group.toggle?'active':''" ng-click ="storage.devices.selectGroup(group.title)" ng-repeat="group in storage.devices.group_list">
                                                {{group.title}}
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="right_devices_panel">
                                    <div class="col-sm-12 padding0">
                                        <ul class="ul-novigation-device" >
                                            <li class="li-ul-novigation-device " ng-click='!availableChannelDevice(device)||selectOriginalDevice(device)' ng-class='!availableChannelDevice(device)?"disabled":""' title="{{device.devName+'('+device.devEui+')'}}" ng-if="Filter_device(device)" ng-repeat="device in storage.devices.full_devices_list">
                                                {{device.devName}}, <span class='devEui'>{{device.devEui}}</span> 
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class='col-sm-12 col-md-12 col-lg-12 col-xs-12' style='height: 100%' ng-show='pageDeviceEditor==3'>
                                <div class="left_devices_panel">
                                    <ul class="ul-novigation-group-device" >
                                        <li class="li-ul-novigation-group-device" ng-hide="hideTypeDevice(type_device)" title="{{type_device.name}}" ng-class="getCssClassesDeviceTypeForDeviceEditor(type_device).text" ng-click="storage.selectTypeDevice(type_device)" ng-repeat="type_device in storage.type_device_list.list  | orderBy:'index'">
                                            {{type_device.name}}
                                            <span class='help absolute fa fa-thumbs-o-up li_absolute_right' ng-show='getCssClassesDeviceTypeForDeviceEditor(type_device).recomendation' title="Рекомендуется"></span>
                                        </li>
                                    </ul>
                                </div>
                                <div class="right_devices_panel">
                                    <div class="right_devices_panel_body">
                                        <div class="right_devices_panel_body_head">
                                            {{storage.getSelectedTypeDevice().title}}
                                        </div>
                                        <div class="right_devices_panel_body_text">
                                            {{storage.getSelectedTypeDevice().description}}
                                        </div>
                                        <div class="right_devices_panel_body_img">
                                            <img src="{{storage.getSelectedTypeDevice().url_image}}" alt="{{storage.getSelectedTypeDevice().name}}">
                                        </div>
                                        <div class="right_devices_panel_body_foother">
                                           Подробнее о устройстве можно узнать на сайте <br> <a href="https://iotvega.com" target="_blank">iotvega.com</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class='col-sm-12 col-md-12 col-lg-12 col-xs-12' style='height: 100%' ng-show='pageDeviceEditor==4'>
                                <div class='row_devices_panel_head' style='text-align: center'>
                                    <div class='itemChannel' ng-if='channel.num_channel<=storage.type_device_list.get_type_device(storage.edit_device_main.device_type).count_channels' ng-repeat="channel in editDevice.device.channels" ng-class='channel.type_channel&&channel.status!==undefined?"disabled":editDevice.num_channel==channel.num_channel?"active":""' ng-click='selectInterface(channel)'>
                                        <div class='itemChannel_header'>
                                            <span class='itemChannel_header_title'>
                                                {{getNameTypeInterface(channel,storage.getSelectedTypeDevice())}}
                                            </span>
                                        </div>
                                        <div class='itemChannel_body'>
                                            <span class='itemChannel_body_status' ng-hide='editDevice.num_channel==channel.num_channel'>
                                                {{channel.type_channel?storage.type_channel_list.get_type_channel(channel.type_channel).name:'Пусто'}}
                                            </span>
                                            <select ng-show='editDevice.num_channel==channel.num_channel' ng-model="editDevice.type_channel"  class="form-control">
                                                <option ng-if='showOptionTypeChannel(channel,type_channel)' ng-repeat="type_channel in storage.type_channel_list.list" ng-value="type_channel">{{type_channel.name}} </option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class='col-sm-12 col-md-12 col-lg-12 col-xs-12' style='height: 100%' ng-show='pageDeviceEditor==5'>
                                <md-content>
                                    <md-tabs md-dynamic-height md-border-bottom md-selected='setting_page'>
                                        <md-tab label="Основные">
                                            <md-content class="md-padding">
                                                <!-- <h2 class="md-display-1">Основные</h2> -->
                                                <p class="md-body-1">
                                                    <div class="col-sm-6" ng-show="checkMultipleVersions()">
                                                        <label>Версия прошивки</label>
                                                        <select ng-model="editDevice.version" ng-change="refreshSlider()" ng-class="editDevice.version!==undefined&&editDevice.version!==''?'valid':'not_valid'"  placeholder="Выбор версии прошивки" title="Выбор версии прошивки" class="form-control">
                                                            <option  ng-value='version.id' ng-repeat="version in getVersions()"> {{version.name}} </option>
                                                        </select>
                                                    </div> 
                                                        <div class="col-sm-6" ng-show="showLastDate()">
                                                        <label>Дата поверки</label>
                                                        <md-datepicker ng-class="editDevice.valid_last_date()?'valid':'not_valid'"  title="Последняя дата поверки" ng-model="editDevice.last_date" id='last_date'></md-datepicker>
                                                        <!-- <input type="text" ng-class="editDevice.valid_last_date()?'valid':'not_valid'" bs-datepicker data-date-format="dd.MM.yyyy" class="form-control" id='last_date'  title="Последняя дата поверки" ng-model="editDevice.last_date"> -->
                                                    </div>
                                                    <div class="col-sm-6" ng-show="(editDevice.type_channel.type==1||editDevice.type_channel.type==29)&&editDevice.device.devEui">
                                                        <label>Дата монтажа</label>
                                                        <md-datepicker title="Дата монтажа" ng-model="editDevice.date_installation"></md-datepicker>
                                                        <!-- <input type="text"  bs-datepicker data-date-format="dd.MM.yyyy" class="form-control" id='last_date'  title="Дата монтажа" ng-model="editDevice.date_installation"> -->
                                                    </div>
                                                    <div class="col-sm-6" ng-show="editDevice.type_channel.type==11&&editDevice.device.devEui">
                                                        <label>Дата отгрузки</label>
                                                        <md-datepicker title="Дата отгрузки" ng-model="editDevice.date_shipment"></md-datepicker>
                                                        <!-- <input type="text"  bs-datepicker data-date-format="dd.MM.yyyy" class="form-control"  title="Дата отгрузки" ng-model="editDevice.date_shipment"> -->
                                                    </div>
                                                    <div class="col-sm-6" ng-show="showCalibInterval()">
                                                        <label>Межповерочный интервал, лет</label>
                                                        <input type="text" class="form-control" ng-class="editDevice.valid_calib_interval()?'valid':'not_valid'" title="Межповерочный интервал" ng-model="editDevice.calib_interval">
                                                    </div>
                                                    
            
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==6">
                                                            <label>Название магнита</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_instrument()?'valid':'not_valid'" placeholder="Название магнитного датчика"  title="Название магнитного датчика" ng-model="editDevice.instrument">
                                                        </div>
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==6&&editDevice.version==1">
                                                            <label>Название магнита</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_instrument2()?'valid':'not_valid'" placeholder="Название магнитного датчика 2"  title="Название магнитного датчика 2" ng-model="editDevice.instrument2">
                                                        </div>
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==5">
                                                            <label>Измеряемый параметр</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_instrument()?'valid':'not_valid'" placeholder="Измеряемый параметр"  title="Измеряемый параметр" ng-model="editDevice.instrument">
                                                        </div>
            
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==4">
                                                            <label>Название охранного входа</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_security_name()?'valid':'not_valid'" placeholder="Название охранного входа"  title="Название охранного входа" ng-model="editDevice.security_name">
                                                        </div>
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==14">
                                                            <label>Название тревоги</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_security_name()?'valid':'not_valid'" placeholder="Название тревоги"  title="Название тревоги" ng-model="editDevice.security_name">
                                                        </div>
            
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==15">
                                                            <label>Поставщик</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_provider()?'valid':'not_valid'" placeholder="Поставщик"  title="Поставщик" ng-model="editDevice.provider">
                                                        </div>
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==15">
                                                            <label>Груз</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_cargo()?'valid':'not_valid'" placeholder="Груз"  title="Груз" ng-model="editDevice.cargo">
                                                        </div>
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==4||(editDevice.device.device_type==15&&editDevice.version==0)">
                                                            <label>Название датчика холла 1</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_hall_1_name()?'valid':'not_valid'" placeholder="Название датчика холла 1"  title="Название датчика холла 1" ng-model="editDevice.hall_1_name">
                                                        </div>
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==4">
                                                            <label>Название датчика холла 2</label>
                                                            <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_hall_2_name()?'valid':'not_valid'" placeholder="Название датчика холла 2"  title="Название датчика холла 2" ng-model="editDevice.hall_2_name">
                                                        </div>
                                                        
                                                        <div class='col-sm-3' ng-show="(editDevice.device.device_type==12 || editDevice.device.device_type==27)&&editDevice.device.devEui" >
                                                            <label>Кол. тарифов</label>
                                                            <select ng-model="editDevice.count_rate" ng-class="editDevice.valid_count_rate()?'valid':'not_valid'"  placeholder="Тарифов" title="Выбор количества тарифов" class="form-control">
                                                                <option value="1">1</option>
                                                                <option value="2">2</option>
                                                                <option value="3">3</option>
                                                                <option value="4">4</option>
                                                            </select>
                                                        </div>
                                                        <div class='col-sm-6' ng-show="(editDevice.device.device_type==12 || editDevice.device.device_type==27)&&editDevice.device.devEui" >
                                                        <label>Отображать как счетчик</label>
                                                        <select ng-model="editDevice.type_meter" ng-change='changeTypeMeter()' placeholder="Отображать как счетчик" title="Отображать как счетчик" class="form-control">
                                                            <option value="0" ng-value='0'>Другой</option>
                                                            <option ng-show='editDevice.device.device_type!=27' value="1" ng-value='1'>ЦЭ 2726А</option>
                                                            <option ng-show='editDevice.device.device_type!=27' value="2" ng-value='2'>ЦЭ 2727А</option>
                                                            <option ng-show='editDevice.device.device_type!=27' value="3" ng-value='3'>Меркурий 206</option>
                                                            <option ng-show='editDevice.device.device_type!=27' value="4" ng-value='4'>Меркурий 200.02</option>
                                                            <option ng-show='editDevice.device.device_type!=27' value="5" ng-value='5'>Топаз 104/105</option>
                                                            <option ng-show='editDevice.device.device_type!=27' value="6" ng-value='6'>Меркурий 206 (Инкотекс)</option>
            
                                                            <option ng-show='editDevice.device.device_type==27' value="7" ng-value='7'>Меркурий 203.2TD</option>
                                                            <option ng-show='editDevice.device.device_type==27' value="8" ng-value='8'>Меркурий 204</option>
                                                            <option ng-show='editDevice.device.device_type==27' value="9" ng-value='9'>Меркурий 208</option>
                                                            <option ng-show='editDevice.device.device_type==27' value="10" ng-value='10'>Меркурий 230</option>
                                                            <option ng-show='editDevice.device.device_type==27' value="11" ng-value='11'>Меркурий 231</option>
                                                            <option ng-show='editDevice.device.device_type==27' value="12" ng-value='12'>Меркурий 233</option>
                                                            <option ng-show='editDevice.device.device_type==27' value="13" ng-value='13'>Меркурий 234</option>
                                                            <option ng-show='editDevice.device.device_type==27' value="14" ng-value='14'>Меркурий 236</option>
                                                            <option ng-show='editDevice.device.device_type==27' value="15" ng-value='15'>Меркурий 238</option>
                                                        </select>
                                                    </div>
                                                    <div class='col-sm-3' ng-show="editDevice.device.device_type==5">
                                                        <label>Ед. изм.</label>
                                                        <input type="text" maxlength="25" ng-class="editDevice.valid_unit()?'valid':'not_valid'" class="form-control" placeholder="Ед. изм."  title="Единица измерения" ng-model="editDevice.unit">
                                                    </div>
                                                    <div class='col-sm-3' ng-show="editDevice.device.device_type==5">
                                                        <label>Значение 4мА</label>
                                                        <input type="text" ng-class="editDevice.valid_min_v()?'valid':'not_valid'" class="form-control" ng-change="changeRangeValue()" placeholder="Значение 4мА"  title="Значение для тока 4мА" ng-model="editDevice.min_v">
                                                    </div>
                                                    <div class='col-sm-3' ng-show="editDevice.device.device_type==5">
                                                        <label>Значение 20мА</label>
                                                        <input type="text" ng-class="editDevice.valid_max_v()?'valid':'not_valid'" class="form-control" placeholder="Значение 20мА" ng-change="changeRangeValue()"  title="Значение для тока 20мА" ng-model="editDevice.max_v">
                                                    </div>
                                                    <div class='col-sm-12' ng-show="editDevice.device.device_type==5&&editDevice.valid_range_value()&&editDevice.version==0">
                                                        <label>Нормальные показания</label>
                                                        <rzslider class="custom-slider" rz-slider-model="slider_val.minValue"
                                                        rz-slider-high="slider_val.maxValue"
                                                        rz-slider-options="slider_val.options"></rzslider>
                                                    </div>
                                                    <div class='col-sm-6' ng-show="editDevice.device.device_type==5||editDevice.device.device_type==23">
                                                        <label>Название охранного входа 1</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_security_name()?'valid':'not_valid'" placeholder="Название охранного входа 1"  title="Название охранного входа 1" ng-model="editDevice.security_name">
                                                    </div>
                                                    <div class='col-sm-6' ng-show="editDevice.device.device_type==5||editDevice.device.device_type==23">
                                                        <label>Название охранного входа 2</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_security_name_2()?'valid':'not_valid'" placeholder="Название охранного входа 2"  title="Название охранного входа 2" ng-model="editDevice.security_name_2">
                                                    </div>
            
                                                    <div class='col-sm-6' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==29">
                                                        <label>Измеряемый параметр</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_instrument()?'valid':'not_valid'" placeholder="Измеряемый параметр"  title="Измеряемый параметр" ng-model="editDevice.instrument">
                                                    </div>
                                                    <div class='col-sm-3' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==29">
                                                        <label>Ед. изм.</label>
                                                        <input type="text" maxlength="25" ng-class="editDevice.valid_unit()?'valid':'not_valid'" class="form-control" placeholder="Ед. изм."  title="Единица измерения" ng-model="editDevice.unit">
                                                    </div>
                                                    <div class='col-sm-3' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==29">
                                                        <label>Значение 0мВ</label>
                                                        <input type="text" ng-class="editDevice.valid_min_v()?'valid':'not_valid'" class="form-control"  placeholder="Значение 0мВ"  title="Значение 0мВ"  ng-model="editDevice.min_v">
                                                    </div>
                                                    <div class='col-sm-3' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==29">
                                                        <label>Значение 21мВ</label>
                                                        <input type="text" ng-class="editDevice.valid_max_v()?'valid':'not_valid'" class="form-control"  placeholder="Значение 21мВ"  title="Значение 21мВ" ng-model="editDevice.max_v">
                                                    </div>
            
                                                        <div class='col-sm-6' ng-show="editDevice.device.device_type==28&&editDevice.type_channel.type==28" ng-repeat='i in forRange(1,10)'>
                                                        <label>Название датчика температуры №{{i}}</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_temperature_sensor_name(i)?'valid':'not_valid'" placeholder="Название датчика температуры №{{i}}"  title="Название датчика температуры №{{i}}" ng-model="editDevice['temperature_sensor_name_'+i]">
                                                    </div>
                                                    <div class='col-sm-6' ng-show="editDevice.device.device_type==5">
                                                        <label>Название выхода 1</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_sensor_name_1()?'valid':'not_valid'" placeholder="Название выхода 1"  title="Название выхода 1" ng-model="editDevice.sensor_name_1">
                                                    </div>
                                                    <div class='col-sm-6' ng-show="editDevice.device.device_type==5">
                                                        <label>Название выхода 2</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_sensor_name_2()?'valid':'not_valid'" placeholder="Название выхода 2"  title="Название выхода 1" ng-model="editDevice.sensor_name_2">
                                                    </div>
                                                    <div class='col-sm-9' ng-show="editDevice.device.device_type==4&&editDevice.version==0">
                                                        <label>Нормальная температура</label>
                                                        <rzslider class="custom-slider" rz-slider-model="slider.minValue"
                                                        rz-slider-high="slider.maxValue"
                                                        rz-slider-options="slider.options"></rzslider>
                                                    </div>
                                                    <div class='col-sm-6'ng-show="editDevice.device.devEui&&(editDevice.device.device_type==12||editDevice.device.device_type==24 ||editDevice.device.device_type==27 ||(editDevice.device.device_type==3&&editDevice.type_channel&&editDevice.type_channel.type==9))" >
                                                        <label>Количество фаз   </label>
                                                        <p style="line-height: 36px"><label ng-class="editDevice.valid_count_phase()?'valid':'not_valid'"><input type="radio" ng-model="editDevice.count_phase"  ng-value="1"> Однофазный </label><label style="margin-left: 4rem" ng-class="editDevice.valid_count_phase()?'valid':'not_valid'"><input type="radio" ng-model="editDevice.count_phase"  ng-value="3"> Трехфазный</label></p>
                                                    </div>
            
            
                                                    <div class="col-sm-6" ng-show="(editDevice.type_channel.type==1||editDevice.type_channel.type==20||editDevice.type_channel.type==7||editDevice.type_channel.type==8||(editDevice.type_channel&&editDevice.type_channel.type==9))&&editDevice.device.devEui">
                                                        <label>Модель прибора учета</label>
                                                        <input type="text"  class="form-control"   title="Модель прибора учета" ng-model="editDevice.model">
                                                    </div>
                                                    <div class="col-sm-6" ng-show="(editDevice.type_channel.type==1||editDevice.type_channel.type==4||editDevice.type_channel.type==7||editDevice.type_channel.type==8||(editDevice.type_channel.type&&editDevice.type_channel.type==9))&&editDevice.device.devEui">
                                                        <label>Заводской номер прибора учета</label>
                                                        <input type="text" class="form-control"  title="Заводской номер прибора учета" ng-model="editDevice.serial">
                                                    </div>
                                                    <div class="col-sm-6" ng-show="showPersonalNum()">
                                                        <label>Номер лицевого счета</label>
                                                        <input type="text" class="form-control"  title="Номер лицевого счета абонента" ng-model="editDevice.personal_num">
                                                    </div>
                                                        <div class="col-sm-6" ng-class="editDevice.valid_personal_num()?'valid':'not_valid'" ng-show="editDevice.type_channel.type==11&&editDevice.device.devEui">
                                                        <label>Номер накладной</label>
                                                        <input type="text" class="form-control"  title="Номер накладной" ng-model="editDevice.personal_num">
                                                    </div>
                                                        <div class="col-sm-6" ng-show="editDevice.type_channel.type==11&&editDevice.device.devEui">
                                                        <label>Тип груза</label>
                                                        <select ng-model="editDevice.typeCargo" ng-class="editDevice.valid_typeCargo()?'valid':'not_valid'" ng-change='changeTypeCargo()'  placeholder="Выбор типа груза" title="Выбор типа груза" class="form-control">
                                                                <option  ng-value='type.id'  ng-repeat="type in storage.type_cargo_list">{{type.name}}</option>
                                                        </select>
                                                    </div>
            
                                                    <div class="col-sm-6" ng-show="(editDevice.type_channel.type==4)&&editDevice.device.devEui">
                                                        <label>Вода</label>
                                                        <select ng-model="editDevice.water" ng-class="editDevice.valid_water()?'valid':'not_valid'" ng-change='changeWater()'  placeholder="Выбор воды" title="Выбор воды" class="form-control">
                                                            <option  ng-value='1' value='1'>Горячая </option>
                                                            <option  ng-value='2' value='2'>Холодная </option>
                                                        </select>
                                                    </div>
                                                    <div class="col-sm-6" ng-show="editDevice.type_channel.type==1&&editDevice.device.devEui">
                                                        <label> Импульсов {{' на '+editDevice.type_channel.unit}}</label>
                                                        <input type="text" ng-class="editDevice.valid_division()?'valid':'not_valid'" class="form-control" placeholder="Импульсов" title="Количество импульсов {{' на '+editDevice.type_channel.unit}}" ng-model="editDevice.division">
                                                    </div>
                                                    <div class="col-sm-6" ng-show="editDevice.type_channel.type==1&&editDevice.device.devEui">
                                                        <label>Начальные показания({{editDevice.type_channel.unit}})</label>
                                                        <input type="text" ng-class="editDevice.valid_init_value()?'valid':'not_valid'" class="form-control" placeholder="Начальные показания({{editDevice.type_channel.unit}})" title="Начальные показания({{editDevice.type_channel.unit}})" ng-model="editDevice.init_value">
                                                    </div>
                                                    <div class="col-sm-6" ng-if='editDevice.type_channel.id==1||editDevice.type_channel.id==16' ng-show="editDevice.device.devEui"> 
                                                        <label>Коэффициент трансформации</label>
                                                        <input type="text" ng-class="editDevice.vega_valid.isNumber(editDevice.kt)?'valid':'not_valid'" class="form-control" placeholder="Коэффициент трансформации" title="Коэффициент трансформации" ng-model="editDevice.kt">
                                                    </div>
            
                                                    <div class='col-sm-6' ng-show="editDevice.type_channel.type==8&&editDevice.device.device_type!=17">
                                                        <label>Название входа 1</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_name_sensor_in_1()?'valid':'not_valid'" placeholder="Название входа 1"  title="Название входа 1" ng-model="editDevice.name_sensor_in_1">
                                                    </div>
                                                    <div class='col-sm-6' ng-show="editDevice.type_channel.type==8&&editDevice.device.device_type!=17">
                                                        <label>Название входа 2</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_name_sensor_in_2()?'valid':'not_valid'" placeholder="Название входа 2"  title="Название входа 2" ng-model="editDevice.name_sensor_in_2">
                                                    </div>
        
                                                    <div class='col-sm-6' ng-show="editDevice.type_channel.type==8&&editDevice.device.device_type!=17">
                                                        <label>Название выхода 1</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_name_sensor_out_1()?'valid':'not_valid'" placeholder="Название выхода 1"  title="Название выхода 1" ng-model="editDevice.name_sensor_out_1">
                                                    </div>
                                                    <div class='col-sm-6' ng-show="editDevice.type_channel.type==8&&editDevice.device.device_type!=17">
                                                        <label>Название выхода 2</label>
                                                        <input type="text" class="form-control" maxlength="25" ng-class="editDevice.valid_name_sensor_out_2()?'valid':'not_valid'" placeholder="Название выхода 2"  title="Название выхода 2" ng-model="editDevice.name_sensor_out_2">
                                                    </div>
        
                                                    <div class='col-sm-6'ng-show="editDevice.device.devEui&&editDevice.device.device_type==12||editDevice.device.devEui&&editDevice.device.device_type==24||editDevice.device.devEui&&editDevice.device.device_type==27" >
                                                        <p style="line-height: 40px; margin: 0"><input type="checkbox" ng-model="editDevice.relay" id="relay"> <label for="relay" ng-class="editDevice.valid_relay()?'valid':'not_valid'">Наличие реле </p>
                                                    </div>
                                                    <div class='col-sm-6'ng-show="editDevice.device.devEui&&editDevice.device.device_type==12||editDevice.device.devEui&&editDevice.device.device_type==24||editDevice.device.devEui&&editDevice.device.device_type==27" >
                                                        <p style="line-height: 40px; margin: 0"><input type="checkbox" ng-model="editDevice.display_power_profile" id="display_power_profile">  <label for="display_power_profile" ng-class="editDevice.valid_display_power_profile()?'valid':'not_valid'">Отображать профиль {{getTextNamePowerProfile(editDevice.type_meter)}} </p>
                                                    </div>
                                                    <div class="col-sm-12" ng-show="showIA()">
                                                        <label ng-if='editDevice.type_channel.type!=20'>Индивидуальный адрес</label>
                                                        <label ng-if='editDevice.type_channel.type==20'>Серийный номер устройства</label>
                                                        <input type="text" class="form-control" ng-class="editDevice.valid_ia()?'valid':'not_valid'" ng-model="editDevice.ia">
                                                    </div>
                                                    <div class="col-sm-12" ng-show="editDevice.device.device_type==30">
                                                        <label ng-if='editDevice.type_channel.type==30'>MAC</label>
                                                        <input type="text" class="form-control" ng-class="editDevice.valid_mac()?'valid':'not_valid'" ng-model="editDevice.mac">
                                                    </div>
                                                    <div class="col-sm-12" ng-show="editDevice.device.device_type==30">
                                                        <label ng-if='editDevice.type_channel.type==30'>Security Key</label>
                                                        <input type="text" class="form-control" ng-class="editDevice.valid_key()?'valid':'not_valid'" ng-model="editDevice.key">
                                                    </div>
                                                    <div class='col-sm-3'  ng-show="editDevice.device.devEui&&editDevice.device.device_type!=9" >
                                                        <label>Цвет</label>
                                                        <md-select ng-model="editDevice.color" ng-style="{background:editDevice.color.hex}" ng-class="editDevice.valid_color()?'valid':'not_valid'">
                                                            <md-option ng-value='color' ng-repeat='color in storage.color_list.list' ng-style="{background:color.hex}"></md-option>
                                                        </md-select>
                                                        <!-- <ol   class="nya-bs-select" ng-model="editDevice.color" ng-class="editDevice.valid_color()?'valid':'not_valid'">
                                                            <li  nya-bs-option="color in storage.color_list.list" >
                                                                <a>
                                                                    <span class="color" ng-style="{background:color.hex}">
        
                                                                    </span>
                                                                </a>
                                                            </li>
                                                        </ol> -->
                                                    </div>
                                                </p>
                                            </md-content>
                                        </md-tab>
                                        <md-tab label="События" ng-disabled='!showEnableDanger()'>
                                            <md-content class="md-padding">
                                                <!-- <h2 class="md-display-1">События</h2> -->
                                                <p class="md-body-1">
                                                    <div class="panel panel-default" ng-show="!showEnableDanger()">
                                                        <div class="panel-heading">Настроек событий</div>
                                                        <div class="panel-body">
                                                            В этом устройстве нет
                                                        </div>
                                                    </div>
                                                    <div class="panel panel-default" ng-show="showEnableDanger()">
                                                        <div class="panel-heading">Общие</div>
                                                        <div class="panel-body">
                                                            <div class='col-sm-12' >
                                                                <p style="line-height: 40px; margin: 0; "><input type="checkbox" ng-model="editDevice.enable_danger" id="enable_danger">  <label for="enable_danger" ng-class="editDevice.valid_enable_danger()?'valid':'not_valid'">Уведомлять о тревогах</label></p>
                                                            </div>
                                                            <div class='col-sm-12' ng-show="editDevice.device.devEui&&editDevice.enable_danger" >
                                                                <p style="line-height: 40px; margin: 0; "><input type="checkbox" ng-model="editDevice.user_message_danger" id="user_message_danger">  <label for="user_message_danger" ng-class="editDevice.valid_user_message_danger()?'valid':'not_valid'">Отправка настраиваемого сообщения</p>
                                                            </div>
                                                            <div class='col-sm-12' ng-show="editDevice.device.devEui&&editDevice.enable_danger" >
                                                                <p style="line-height: 40px; margin: 0; "><input type="checkbox" ng-model="editDevice.app_message_danger" id="app_message_danger">  <label for="app_message_danger" ng-class="editDevice.valid_app_message_danger()?'valid':'not_valid'">Отправка сообщения предустановленного формата</p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <!-- <div class="panel panel-default" ng-show="editDevice.device.devEui&&editDevice.enable_danger">
                                                        <div class="panel-heading">Формат отправки сообщений</div>
                                                        <div class="panel-body">
                                                            <div class='col-sm-12'>
                                                                <p style="line-height: 40px; margin: 0; "><input type="checkbox" ng-model="editDevice.user_message_danger" id="user_message_danger">  <label for="user_message_danger" ng-class="editDevice.valid_user_message_danger()?'valid':'not_valid'">Отправка настраиваемого сообщения</p>
                                                            </div>
                                                            <div class='col-sm-12'>
                                                                <p style="line-height: 40px; margin: 0; "><input type="checkbox" ng-model="editDevice.app_message_danger" id="app_message_danger">  <label for="app_message_danger" ng-class="editDevice.valid_app_message_danger()?'valid':'not_valid'">Отправка сообщения предустановленного формата</p>
                                                            </div>
                                                        </div>
                                                    </div> -->
                                                    <div class="panel panel-default" ng-show="showEnableDanger()&&editDevice.device.devEui&&editDevice.enable_danger">
                                                        <div class="panel-heading">Способы отправки</div>
                                                        <div class="panel-body">
                                                            <div class='col-sm-6'>
                                                                <p style="line-height: 40px; margin: 0;"><input type="checkbox" ng-model="editDevice.sms" id="sms">  <label for="sms" ng-class="editDevice.valid_sms()?'valid':'not_valid'">SMS</p>
                                                            </div>
                                                            <div class='col-sm-6'>
                                                                <p style="line-height: 40px; margin: 0;"><input type="checkbox" ng-model="editDevice.email" id="email">  <label for="email" ng-class="editDevice.valid_email()?'valid':'not_valid'">Email</p>
                                                            </div>
                                                            <div class='col-sm-6'>
                                                                <p style="line-height: 40px; margin: 0;"><input type="checkbox" ng-model="editDevice.telegram" id="telegram">  <label for="telegram" ng-class="editDevice.valid_telegram()?'valid':'not_valid'">Telegram</p>
                                                            </div>
                                                            <div class='col-sm-6'>
                                                                <p style="line-height: 40px; margin: 0;"><input type="checkbox" ng-model="editDevice.voice" id="voice">  <label for="voice" ng-class="editDevice.valid_voice()?'valid':'not_valid'">Голосом</p>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="panel panel-default" ng-show="showEnableDanger()&&editDevice.device.devEui&&editDevice.enable_danger&&(editDevice.sms||editDevice.voice||editDevice.email||editDevice.telegram)">
                                                        <div class="panel-heading">Куда отправлять сообщения</div>
                                                        <div class="panel-body">
                                                            <div class="col-sm-6 " ng-show="editDevice.device.devEui&&(editDevice.enable_danger&&(editDevice.sms||editDevice.voice))">
                                                                <label>Номера телефонов через запятую</label>
                                                                <textarea ng-model="editDevice.telephones" maxlength="200" ng-class="editDevice.valid_telephones()?'valid':'not_valid'" placeholder="79339345827,79139999999" title="Номера телефонов" class="form-control"></textarea>
                                                            </div>
                                                            <div class="col-sm-6 " ng-show="editDevice.device.devEui&&(editDevice.enable_danger&&editDevice.email)">
                                                                <label>Email адреса через запятую</label>
                                                                <textarea ng-model="editDevice.emails" maxlength="200" ng-class="editDevice.valid_emails()?'valid':'not_valid'" placeholder="mail@example.com,mail2@example.ru" title="Email адреса" class="form-control"></textarea>
                                                            </div>
                                                            <div class="col-sm-6 " ng-show="editDevice.device.devEui&&(editDevice.enable_danger&&(editDevice.telegram))">
                                                                <label>Id телеграм чатов</label>
                                                                <textarea ng-model="editDevice.telegram_chats" maxlength="200" ng-class="editDevice.valid_telegram_chats()?'valid':'not_valid'" placeholder="438301000,438311709" title="chat_id telegram" class="form-control"></textarea>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="panel panel-default" ng-show="showEnableDanger()&&editDevice.device.devEui&&editDevice.enable_danger&&(editDevice.sms||editDevice.voice||editDevice.email||editDevice.telegram)&&editDevice.user_message_danger">
                                                        <div class="panel-heading">Настраиваемые сообщения</div>
                                                        <div class="panel-body">
                                                            <div class="col-sm-6 " ng-show="editDevice.device.devEui&&editDevice.enable_danger&&editDevice.sms&&editDevice.user_message_danger">
                                                                <label>SMS сообщение</label>
                                                                <textarea ng-model="editDevice.message_sms" maxlength="70" ng-class="editDevice.valid_message_sms()?'valid':'not_valid'" placeholder="SMS текст" title="SMS текст" class="form-control"></textarea>
                                                            </div>
                                                            <div class="col-sm-6 " ng-show="editDevice.device.devEui&&editDevice.enable_danger&&(editDevice.telegram||editDevice.email)&&editDevice.user_message_danger">
                                                                <label>Cообщение о тревоге (email, telegram)</label>
                                                                <textarea ng-model="editDevice.message_messenger" maxlength="1000" ng-class="editDevice.valid_message_messenger()?'valid':'not_valid'" placeholder="Текст сообщения " title="Текст сообщения" class="form-control"></textarea>
                                                            </div>
                                                            <div class="col-sm-6 " ng-show="editDevice.device.devEui&&editDevice.enable_danger&&editDevice.voice&&editDevice.user_message_danger">
                                                                <label>Текст голосового сообщения</label>
                                                                <textarea ng-model="editDevice.voice_message" maxlength="200" ng-class="editDevice.valid_voice_message()?'valid':'not_valid'" placeholder="Текст голосового сообщения" title="Текст голосового сообщения" class="form-control"></textarea>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </p>
                                            </md-content>
                                        </md-tab>
                                    </md-tabs>
                                </md-content>
                            </div>
                        </div>
                        <div class="editDevice_footer" style='padding: 1rem 15px'>
                            <md-button class='md-raised md-success' ng-click="(editDevice.num_channel&&editDevice.type_channel)&&(pageDeviceEditor=5)" ng-show='pageDeviceEditor==4' ng-disabled='!(editDevice.num_channel&&editDevice.type_channel)'>Продолжить</md-button>
                            <md-button class='md-raised md-success' ng-click="storage.edit_device_main.selected_device_type&&applyTypeDevice()" ng-show='pageDeviceEditor==3' ng-disabled='!(storage.edit_device_main.selected_device_type)'>Продолжить</md-button>
                            <md-button class='md-raised md-success' ng-click="saveDevice()" ng-show='pageDeviceEditor==5'>Сохранить</md-button>
                        </div>
                    </div>
                </div>     
            </div>
            
            <div class="page col-sm-12" id="page10" ng-show="check_page=='12'">
                <div ng-show='WS.loader' class='loader'>
                    <div class="sk-fading-circle">
                        <div class="sk-circle1 sk-circle"></div>
                        <div class="sk-circle2 sk-circle"></div>
                        <div class="sk-circle3 sk-circle"></div>
                        <div class="sk-circle4 sk-circle"></div>
                        <div class="sk-circle5 sk-circle"></div>
                        <div class="sk-circle6 sk-circle"></div>
                        <div class="sk-circle7 sk-circle"></div>
                        <div class="sk-circle8 sk-circle"></div>
                        <div class="sk-circle9 sk-circle"></div>
                        <div class="sk-circle10 sk-circle"></div>
                        <div class="sk-circle11 sk-circle"></div>
                        <div class="sk-circle12 sk-circle"></div>
                    </div>
                </div>
                <div ng-hide='WS.loader' class="page-conteiner col-sm-12 padding0">
                    <div class="content-page col-sm-12">
                        <div class="col-sm-12 padding0" >
                            <div class="cell cell-content cell-low ">
                                <div class="head-cell-content"><h3 style="color: #676565" class="h3-title-cell">Фильтровать устройства</h3></div>
                                <div class="body-cell-content" style='max-height: 100%'>
                                    <div class='col-sm-4'>
                                        <label>По модели оконечного устройства</label>
                                        <select   ng-init="storage.map_nav.filter.deviceModel = 0" placeholder="Модель оконечного устройства" title="Модель оконечного устройства" class="form-control" ng-model='storage.map_nav.filter.deviceModel'>
                                            <option title="Все" ng-value="0">Отображать все</option>
                                            <option title="{{type.name}}" ng-if="!hideTypeDevice(type)"  ng-repeat="type in storage.type_device_list.list  | orderBy:'index'" ng-value="type.id">{{type.name}}</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div> 
                    </div>
                </div>     
            </div>
        </div>
            <!-- </div> -->

            <div class="col-sm-12 " ng-show="check_page==4&&(command_list_cookie.get_device_appdata&&(command_list_cookie.manage_device_appdata||command_list_cookie.delete_device_appdata))">
                <div class="cell cell-content cell-low ">
                    <div class="head-cell-content"><h3 class="h3-title-cell">Оконечные устройства</h3><div ng-click="add_device_main()" title="Добавить новое устройство" class='btn ' style='position: absolute; top: 0.5rem;  right: 15px; background: #0cb8e2; color:white; margin: 1rem'><label>Подключить </label><span class='fa fa-plus-circle' style='  '></span> </div></div>
                    <div class="body-cell-content">
                        <table class="table table-big">
                            <thead>
                            <th>Название</th><th>Серийный номер</th><th>Тип устройства</th><th>Последний выход на связь <div class='btn pointer' ng-disable='WS.loader' title='Запросить' ng-click="WS.loader||sendAllGetDataReq()"><span class="fa fa-refresh" ng-class="WS.loader?'fa-spin ':'' "></span></div></th><th>Количество каналов</th><th>Количество активных устройств</th><th></th><th></th>
                            </thead>
                            <tbody>
                                <tr class="tr-left interactive_tr" ng-repeat="device in storage.devices.devices_list">
                                    <td>{{device.devName}}</td>
                                    <td>{{device.devEui}}</td>
                                    <td>{{storage.type_device_list.get_type_device(device.device_type).name}}</td>
                                    <td>{{convert_date(device.last_data_ts)}}</td>
                                    <td>{{device.device_type==3?2:storage.type_device_list.get_type_device(device.device_type).count_channels}}</td>
                                    <td ng-show='command_list_cookie.get_data' class="help" title="{{storage.devices.get_active_channel(device.devEui).join()}}">{{storage.devices.get_active_channel(device.devEui).length}}</td>
                                    <td ><span class="fa fa-wrench pointer"  title="Настройки устройства" ng-show='storage.type_device_list.get_type_device(device.device_type).customDevice' ng-click="showSettingsDevice()"></span></td>
                                    <td class="pointer" title="Удалить устройство" ng-show='command_list_cookie.delete_device_appdata' ng-click="delete_device_main(device)"><span class="glyphicon glyphicon-remove-sign"></span></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="cell cell-content cell-low">
                    <div class="head-cell-content"><h3 class="h3-title-cell">Каналы</h3><div ng-click="add_device()" title="Добавить новый канал" class='btn ' style='position: absolute; top: 0.5rem; right: 15px; background: #0cb8e2; color:white; margin: 1rem'><label>Подключить </label><span class='fa fa-plus-circle' style='  '></span> </div></div>
                    <div class="body-cell-content">
                        <table class="table table-big" >
                            <thead>
                            <th></th> <th>№</th><th>Название</th><th>Тип</th><th>Состояние</th><th>Оконечное устройство</th><th></th><th></th><th></th><th></th>
                            </thead>
                            <tbody ng-repeat="device in storage.devices.devices_list">
                                <tr ng-show="storage.type_channel_list.get_type_channel(channel.type_channel)" class=" tr-left interactive_tr"   style=""  ng-repeat="channel in device.channels">
                                    <td style="text-align: center" >
                                        <span style="border-color:{{storage.color_list.get_color(channel.color)}}; color:{{storage.color_list.get_color(channel.color)}}; background:transparent"   class="my_animated  fa fa-{{storage.type_channel_list.get_type_channel(channel.type_channel).span}}"></span>
                                    </td>
                                    <td>{{channel.num_channel}}</td>
                                    <td>{{channel.name}}</td>
                                    <td>{{storage.type_channel_list.get_type_channel(channel.type_channel).name}}</td>
                                    <td>{{storage.status_channel_list.get_status(channel.status)}}</td>
                                    <td>{{device.devName}}</td>
                                    <td class="help" title="{{get_dop_info(channel)}}"><span class="glyphicon glyphicon-info-sign "></span></td>
                                    <td ng-class='channel.danger?"olyrm2":""' class="pointer" ng-click="select_channel(device.devEui,channel.num_channel)" title="Перейти к устройству"><span class="glyphicon glyphicon-eye-open "></span></td>
                                    <td class="pointer" ng-show='command_list_cookie.get_data' title="Редактировать информацию" ng-click="select_channel_edit(device,channel.num_channel,storage.color_list.get_full_color(channel.color),storage.type_channel_list.get_type_channel(channel.type_channel))"><span class="glyphicon glyphicon-cog "></span></td>
                                    <td class="pointer" ng-show='command_list_cookie.get_data' title="Копировать" ng-click="copy_channel_edit(device,channel.num_channel,storage.color_list.get_full_color(channel.color),storage.type_channel_list.get_type_channel(channel.type_channel))"><span class="glyphicon glyphicon-duplicate "></span></td>
                                    <td class="pointer" ng-show='command_list_cookie.delete_device_appdata' title="Удалить устройство" ng-click="removeDevice(channel.name,channel.num_channel,device.devEui)"><span class="glyphicon glyphicon-remove-sign"></span></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>    
        <div class="page" id="page7" ng-show="check_page=='7'">
            <div ng-hide='WS.loader' class="page-conteiner col-sm-12 padding0">
                <div class="content-page col-sm-12">
                    
                    <div class="col-sm-12 padding0" ng-if="WS.logs.list.length>0">
                        <div class="cell cell-content cell-low ">
                            <div class="head-cell-content"><h3 style="color: #676565" class="h3-title-cell">Онлайн данные</h3></div>
                            <div class="body-cell-content" style='max-height: 100%'>
                                <table class="table " >
                                    <thead>
                                        <th>Время</th><th>Событие</th><th>Устройство</th>
                                    </thead>
                                    <tbody>
                                        <tr class="tr-left" ng-repeat="log in WS.logs.list ">
                                            <td>{{log.time_ru}}</td>
                                            <td>{{log.event}}</td>
                                            <td>{{log.device}}</td> 
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div> 
                </div>
            </div>     
        </div>
        <div class="col-sm-12 " ng-show="check_page==8">
            <div class="cell cell-content cell-low ">
                <div class="head-cell-content">
                    <h3 class="h3-title-cell">Менеджер отчетов</h3>
                    <div class="btn btn-default btn_refresh" title="Сброс" ng-click="managerReport.reload()"><span class="fa fa-refresh"></span></div>
                </div>
                <div class="body-cell-content" style="max-height: 100%;margin-bottom: 0">
                    <div class="manager_report">
                        <div class="position_report">
                            <h4 ng-if='managerReport.step!=4' style="font-family: monospace; text-align: left;margin-left: 1rem; color:{{managerReport.selectedTypeChannel?'black':'transparent'}}">
                                {{managerReport.selectedTypeChannel?managerReport.selectedTypeChannel.fullName:"Неизвестно"}} 
                                <span class="fa fa-angle-right" ng-show="managerReport.selectedType" ></span> 
                                {{managerReport.selectedType?managerReport.selectedType.name:""}} 
                                <span class="fa fa-angle-right" ng-show="managerReport.selectedObject" ></span>
                                {{managerReport.selectedObject?managerReport.selectedObject.name:""}} 
                            </h4>
                        </div>
                        <div class="content_report">
                            <div class="head_content_report">
                                <div class = 'col-sm-12 padding0'>
                                    <table ng-show="managerReport.step===3&&managerReport.selectedType.id!=2&&managerReport.selectedType.id!=6&&managerReport.selectedType.id!=7" class="daterange_control_report" style=' float: left;margin: 0'>
                                        <tbody>
                                            <tr>
                                                <td style='color:black;padding: 0'>Учитывать данные только за интервал времени </td>
                                                <td class="head-info"><div style="padding-left: 5px;margin-left: 5rem" id="reportrange2" class="pull-right pointer btn btn-default">
                                                    <span></span> <b class="caret"></b>
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                                {{managerReport.getText()}}
                                
                            </div>
                            <div class="body_content_report">
                                <div class='danger_report' ng-if='managerReport.step===2 && countTypeReport() == 0'>
                                   <span class='fa fa-warning'></span> ДЛЯ ДАННОГО ТИПА УСТРОЙСТВА НЕТ ДОСТУПНЫХ ОТЧЕТОВ
                                </div>
                                <label class="item_report radio" ng-if="managerReport.step===1&&storage.devices.getPresenceTypeChannel(typeChannel.id)" ng-repeat="typeChannel in storage.type_channel_list.list"><input type="radio" ng-model="managerReport.selectedTypeChannel"  ng-value="typeChannel"> {{typeChannel.fullName}}</label>
                                
                                <label class="item_report radio typeReport" ng-if="managerReport.step===2&&reportType.channelTypes.indexOf(managerReport.selectedTypeChannel.id)>-1" ng-repeat="reportType in managerReport.types"><input type="radio" ng-model="managerReport.selectedType"  ng-value="reportType"> {{reportType.name}}</label>
                                <label class="item_report radio" ng-if="managerReport.step===3&&object.checkPresenceTypeChannel(managerReport.selectedTypeChannel.id);" ng-repeat="object in storage.map_nav.list"><input type="radio" ng-model="managerReport.selectedObject"  ng-value="object"> {{object.name}}</label>
                                <div class='col-sm-12 padding0' ng-if='managerReport.status&&managerReport.step===4'>
                                    <table ng-if='managerReport.selectedType.id==1' id='report' class='table'>
                                        <thead >
                                            <tr>
                                                <th style="border: thin solid black; font-family: monospace;vertical-align: middle"  colspan='{{managerReport.report.info.countCol}}' >
                                                    {{managerReport.selectedTypeChannel?managerReport.selectedTypeChannel.fullName:"Неизвестно"}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedType" ></span> 
                                                    {{managerReport.selectedType?managerReport.selectedType.name:""}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedObject" ></span>
                                                    {{managerReport.selectedObject?managerReport.selectedObject.name:""}} 
                                                     за период {{convert_date(managerReport.date_range.getStart()*1000-1,managerReport.selectedTypeChannel.id) }} - {{convert_date(managerReport.date_range.getEnd()*1000+1,managerReport.selectedTypeChannel.id) }}
                                                    
                                                </th>
                                            </tr>
                                            <tr>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'level_2'">Помещение <span ng-if="managerReport.sort == 'level_2'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'name'">Устройство <span ng-if="managerReport.sort == 'name'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'personal_num'">Номер лицевого счета <span ng-if="managerReport.sort == 'personal_num'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'model'" ng-if="managerReport.selectedTypeChannel.id!=8">Модель прибора учета <span ng-if="managerReport.sort == 'model'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'water'" ng-if="managerReport.selectedTypeChannel.id==8">Вода <span ng-if="managerReport.sort == 'water'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'serial'">Серийный номер устройства <span ng-if="managerReport.sort == 'serial'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'kt'" ng-if="managerReport.selectedTypeChannel.id==1||managerReport.selectedTypeChannel.id==14||managerReport.selectedTypeChannel.id==16">Коэффициент трансформации <span ng-if="managerReport.sort == 'kt'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'beginDate_sum'">Начало <span ng-if="managerReport.sort == 'beginDate_sum'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'beginReading_sum'">Показание на начало периода{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'beginReading_sum'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'endDate_sum'">Конец <span ng-if="managerReport.sort == 'endDate_sum'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'endReading_sum'">Показание на конец периода{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'endReading_sum'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'consum_sum'">Потреблено за период{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'consum'" class="fa fa-sort-amount-asc"></span></th>
                                           </tr>
                                        </thead>
                                        <tbody>
                                          
                                            <tr ng-repeat=" channel in managerReport.report.channels | orderBy:natural(managerReport.sort)">
                                                <td class="td_report">{{channel.level_2}}</td>
                                                <td class="td_report">{{channel.name}}</td>
                                                <td class="td_report">{{channel.personal_num!==undefined?channel.personal_num:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id!=8">{{channel.model!==undefined?channel.model:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==8">{{channel.water==1?"Горячая":channel.water==2?"Холодная":'-'}}</td>
                                                <td class="td_report" data-tableexport-msonumberformat='\@'>{{channel.serial!==undefined?channel.serial:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==1||managerReport.selectedTypeChannel.id==14||managerReport.selectedTypeChannel.id==16" >{{channel.kt!==undefined&&channel.kt>1?channel.kt.toString().replace('.',','):'-'}}</td>
                                                <td class="td_report">{{channel.beginDate_sum!==99999999999999&&channel.beginDate_sum!==99999999999999000?convert_date(channel.beginDate_sum,managerReport.selectedTypeChannel.id):'-'}}</td>
                                                <td class="td_report">{{channel.beginReading_sum.toString().replace('.',',')}}</td>
                                                <td class="td_report">{{channel.endDate_sum>1000?convert_date(channel.endDate_sum,managerReport.selectedTypeChannel.id):'-'}}</td>
                                                <td class="td_report">{{channel.endReading_sum.toString().replace('.',',')}}</td>
                                                <td class="td_report">{{my_converter.round_size(channel.consum_sum,4).toString().replace('.',',')}}</td>
                                            </tr>
                                            <tr>
                                                <td colspan='{{managerReport.report.info.countCol-2}}'></td>
                                                <td class="td_report">Итог{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}}</td>
                                                <td class="td_report">{{managerReport.report.sum.toString().replace('.',',')}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table ng-if='managerReport.selectedType.id==5' id='report' class='table'>
                                        <thead >
                                            <tr>
                                                <th style="border: thin solid black; font-family: monospace;vertical-align: middle"  colspan='{{managerReport.report.info.countCol}}' >
                                                    {{managerReport.selectedTypeChannel?managerReport.selectedTypeChannel.fullName:"Неизвестно"}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedType" ></span> 
                                                    {{managerReport.selectedType?managerReport.selectedType.name:""}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedObject" ></span>
                                                    {{managerReport.selectedObject?managerReport.selectedObject.name:""}} 
                                                     за период {{convert_date(managerReport.date_range.getStart()*1000-1) }} - {{convert_date(managerReport.date_range.getEnd()*1000+1) }}
                                                    
                                                </th>
                                            </tr>
                                            <tr>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'level_2'">Помещение <span ng-if="managerReport.sort == 'level_2'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'name'">Устройство <span ng-if="managerReport.sort == 'name'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'personal_num'">Номер лицевого счета <span ng-if="managerReport.sort == 'personal_num'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'model'" ng-if="managerReport.selectedTypeChannel.id!=8">Модель прибора учета <span ng-if="managerReport.sort == 'model'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'serial'">Серийный номер устройства <span ng-if="managerReport.sort == 'serial'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'kt'" ng-if="managerReport.selectedTypeChannel.id==1||managerReport.selectedTypeChannel.id==14||managerReport.selectedTypeChannel.id==16">Коэффициент трансформации <span ng-if="managerReport.sort == 'kt'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'consum_1'">По тарифу 1{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'consum_1'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'consum_2'">По тарифу 2{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'consum_2'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'consum_3'">По тарифу 3{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'consum_3'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'consum_4'">По тарифу 4{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'consum_4'" class="fa fa-sort-amount-asc"></span></th>
                                                
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'consum_sum'">Σ{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'consum_sum'" class="fa fa-sort-amount-asc"></span></th>
                                           </tr>
                                        </thead>
                                        <tbody>
                                          
                                            <tr ng-repeat=" channel in managerReport.report.channels | orderBy:natural(managerReport.sort)">
                                                <td class="td_report">{{channel.level_2}}</td>
                                                <td class="td_report">{{channel.name}}</td>
                                                <td class="td_report">{{channel.personal_num!==undefined?channel.personal_num:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id!=8">{{channel.model!==undefined?channel.model:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==8">{{channel.water==1?"Горячая":channel.water==2?"Холодная":'-'}}</td>
                                                <td class="td_report" data-tableexport-msonumberformat='\@' >{{channel.serial!==undefined?channel.serial:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==1||managerReport.selectedTypeChannel.id==14||managerReport.selectedTypeChannel.id==16" >{{channel.kt!==undefined&&channel.kt>1?channel.kt.toString().replace('.',','):'-'}}</td>
                                                <td class="td_report">{{my_converter.round_size(channel.consum_1,4).toString().replace('.',',')}}</td>
                                                <td class="td_report">{{my_converter.round_size(channel.consum_2,4).toString().replace('.',',')}}</td>
                                                <td class="td_report">{{my_converter.round_size(channel.consum_3,4).toString().replace('.',',')}}</td>
                                                <td class="td_report">{{my_converter.round_size(channel.consum_4,4).toString().replace('.',',')}}</td>
                                                
                                                <td class="td_report">{{my_converter.round_size(channel.consum_sum,4).toString().replace('.',',')}}</td>
                                            </tr>
                                            <tr>
                                                <td colspan='{{managerReport.report.info.countCol-2}}'></td>
                                                <td class="td_report">Итог{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}}</td>
                                                <td class="td_report">{{managerReport.report.sum.toString().replace('.',',')}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table ng-if='managerReport.selectedType.id==2' id='report' class='table'>
                                        <thead >
                                            <tr>
                                                <th style="border: thin solid black; font-family: monospace;vertical-align: middle"  colspan='{{managerReport.report.info.countCol}}'>
                                                    {{managerReport.selectedTypeChannel?managerReport.selectedTypeChannel.fullName:"Неизвестно"}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedType" ></span> 
                                                    {{managerReport.selectedType?managerReport.selectedType.name:""}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedObject" ></span>
                                                    {{managerReport.selectedObject?managerReport.selectedObject.name:""}} 
                                                    на {{convert_date(getCurrentTime())}}
                                                    
                                                </th>
                                            </tr>
                                            <tr>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'level_2'">Помещение <span ng-if="managerReport.sort == 'level_2'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'name'">Устройство <span ng-if="managerReport.sort == 'name'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'personal_num'" ng-if="managerReport.selectedTypeChannel.id!=23&&managerReport.selectedTypeChannel.id!=25&&managerReport.selectedTypeChannel.id!=29">Номер лицевого счета <span ng-if="managerReport.sort == 'personal_num'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'model'" ng-if="managerReport.selectedTypeChannel.id!=8&&managerReport.selectedTypeChannel.id!=23&&managerReport.selectedTypeChannel.id!=25&&managerReport.selectedTypeChannel.id!=29" >Модель прибора учета <span ng-if="managerReport.sort == 'model'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'water'" ng-if="managerReport.selectedTypeChannel.id==8">Вода <span ng-if="managerReport.sort == 'water'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'serial'" ng-if="managerReport.selectedTypeChannel.id!=23&&managerReport.selectedTypeChannel.id!=25&&managerReport.selectedTypeChannel.id!=29">Серийный номер устройства <span ng-if="managerReport.sort == 'serial'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'kt'" ng-if="managerReport.selectedTypeChannel.id==1||managerReport.selectedTypeChannel.id==14||managerReport.selectedTypeChannel.id==16">Коэффициент трансформации <span ng-if="managerReport.sort == 'kt'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'last_sensor'" ng-if="managerReport.selectedTypeChannel.id!=23&&managerReport.selectedTypeChannel.id!=25">Текущие показания{{managerReport.selectedTypeChannel.unit?', '+managerReport.selectedTypeChannel.unit:''}} <span ng-if="managerReport.sort == 'last_sensor'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'last_angle'" ng-if="managerReport.selectedTypeChannel.id==23||managerReport.selectedTypeChannel.id==25">Угол °<span ng-if="managerReport.sort == 'last_angle'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'last_temperature'" ng-if="managerReport.selectedTypeChannel.id==23||managerReport.selectedTypeChannel.id==25">Температура °<span ng-if="managerReport.sort == 'last_temperature'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'last_damp'" ng-if="managerReport.selectedTypeChannel.id==23||managerReport.selectedTypeChannel.id==25">Влажность %<span ng-if="managerReport.sort == 'last_damp'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'last_datetime'">Показания сняты <span ng-if="managerReport.sort == 'last_datetime'" class="fa fa-sort-amount-asc"></span></th>
                                           </tr>
                                        </thead>
                                        <tbody>
                                            <tr ng-repeat=" channel in managerReport.report.channels | orderBy:natural(managerReport.sort)">
                                                <td class="td_report">{{channel.level_2}}</td>
                                                <td class="td_report">{{channel.name}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id!=23&&managerReport.selectedTypeChannel.id!=25&&managerReport.selectedTypeChannel.id!=29">{{channel.personal_num!==undefined?channel.personal_num:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id!=8&&managerReport.selectedTypeChannel.id!=23&&managerReport.selectedTypeChannel.id!=25&&managerReport.selectedTypeChannel.id!=29">{{channel.model!==undefined?channel.model:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==8">{{channel.water==1?"Горячая":channel.water==2?"Холодная":'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id!=23&&managerReport.selectedTypeChannel.id!=25&&managerReport.selectedTypeChannel.id!=29" data-tableexport-msonumberformat='\@'>{{channel.serial!==undefined?channel.serial:'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==1||managerReport.selectedTypeChannel.id==14||managerReport.selectedTypeChannel.id==16">{{channel.kt!==undefined&&channel.kt>1?channel.kt.toString().replace('.',','):'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id!=23&&managerReport.selectedTypeChannel.id!=25">{{channel.last_sensor!==undefined?channel.last_sensor.toString().replace('.',','):'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==23||managerReport.selectedTypeChannel.id==25">{{channel.last_angle!==undefined?channel.last_angle.toString().replace('.',','):'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==23||managerReport.selectedTypeChannel.id==25">{{channel.last_temperature!==undefined?channel.last_temperature.toString().replace('.',','):'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==23||managerReport.selectedTypeChannel.id==25">{{channel.last_damp!==undefined?channel.last_damp.toString().replace('.',','):'-'}}</td>
                                                <td class="td_report">{{channel.last_datetime?convert_date(channel.last_datetime,managerReport.selectedTypeChannel.id):'-'}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table ng-if='managerReport.selectedType.id==3' id='report' class='table'>
                                        <thead >
                                            <tr>
                                                <th style="border: thin solid black; font-family: monospace;vertical-align: middle"  colspan='4' >
                                                    {{managerReport.selectedTypeChannel?managerReport.selectedTypeChannel.fullName:"Неизвестно"}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedType" ></span> 
                                                    {{managerReport.selectedType?managerReport.selectedType.name:""}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedObject" ></span>
                                                    {{managerReport.selectedObject?managerReport.selectedObject.name:""}} 
                                                     за период {{convert_date(managerReport.date_range.getStart()*1000-1) }} - {{convert_date(managerReport.date_range.getEnd()*1000+1) }}
                                                    
                                                </th>
                                            </tr>
                                            <tr>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'level_2'">Помещение <span ng-if="managerReport.sort == 'level_2'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'name'">Устройство <span ng-if="managerReport.sort == 'name'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'dateTime'">Дата и время <span ng-if="managerReport.sort == 'dateTime'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'primaryDanger'">Событие <span ng-if="managerReport.sort == 'primaryDanger'" class="fa fa-sort-amount-asc"></span></th>
                                           </tr>
                                        </thead>
                                        <tbody>
                                            <tr ng-repeat=" danger in managerReport.report.dangers() | orderBy:natural(managerReport.sort)">
                                                <td class="td_report">{{danger.level_2}}</td>
                                                <td class="td_report">{{danger.name}}</td>
                                                <td class="td_report">{{danger.dateTime?convert_date(danger.dateTime,managerReport.selectedTypeChannel.id):'-'}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==6">{{getDangerReason(6,danger)}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==7">{{danger.dangerEvent?parseReason(danger.reason,3):''}}{{danger.dangerEvent&&danger.dangerTemperature?', ':''}}{{danger.dangerTemperature?'Нарушен температурный режим!':''}}</td>
                                                
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==9">{{getDangerReason(9,danger)}} </td>
                                                
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==8">{{danger.state_display?'Блокировка экрана!':''}} {{danger.leaking?'Протечка!':''}} {{danger.breakthrough?'Прорыв!':''}} {{danger.hall_1?'Магнитное воздействие!':''}}</td>
                                                
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==10||managerReport.selectedTypeChannel.id==11||managerReport.selectedTypeChannel.id==12||managerReport.selectedTypeChannel.id==13||managerReport.selectedTypeChannel.id==31||managerReport.selectedTypeChannel.id==23||managerReport.selectedTypeChannel.id==25">{{getText_ReasonSmart(managerReport.selectedTypeChannel.id,danger.reason,danger)}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==15">{{parseReason(danger.reason,8,danger.desc,danger.dt)}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==14">{{getText_ReasonUE(danger.event)}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==17">{{danger.alarm?danger.security_name:''}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==18">{{danger.dangerEvent?parseReason(danger.reason,11,danger.desc):''}} {{danger.dangerTemperature?'Нарушен температурный режим!':''}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table ng-if='managerReport.selectedType.id==4' id='report' class='table'>
                                        <thead >
                                            <tr>
                                               <th style="border: thin solid black; font-family: monospace;vertical-align: middle"  colspan='4' >
                                                    {{managerReport.selectedTypeChannel?managerReport.selectedTypeChannel.fullName:"Неизвестно"}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedType" ></span> 
                                                    {{managerReport.selectedType?managerReport.selectedType.name:""}}  
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedObject" ></span>
                                                    {{managerReport.selectedObject?managerReport.selectedObject.name:""}} 
                                                     за период {{convert_date(managerReport.date_range.getStart()*1000-1) }} - {{convert_date(managerReport.date_range.getEnd()*1000+1) }}
                                                    
                                                </th>
                                            </tr>
                                            <tr>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'level_2'">Помещение <span ng-if="managerReport.sort == 'level_2'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'name'">Устройство <span ng-if="managerReport.sort == 'name'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'status'">Состояние устройства <span ng-if="managerReport.sort == 'status'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'count_danger'">Количество<span ng-if="managerReport.sort == 'count_danger'" class="fa fa-sort-amount-asc"></span></th>
                                           </tr>
                                        </thead>
                                        <tbody>
                                            <tr ng-repeat=" channel in managerReport.report.channels | orderBy:natural(managerReport.sort)">
                                                <td class="td_report">{{channel.level_2}}</td>
                                                <td class="td_report">{{channel.name}}</td>
                                                <td class="td_report">{{storage.status_channel_list.get_status(channel.status)}}</td>
                                                <td class="td_report">{{channel.count_danger}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <table ng-if='managerReport.selectedType.id==7' id='report' class='table'>
                                        <thead >
                                            <tr>
                                               <th style="border: thin solid black; font-family: monospace;vertical-align: middle"  colspan='{{managerReport.selectedTypeChannel.id==31?6:5}}' >
                                                    {{managerReport.selectedTypeChannel?managerReport.selectedTypeChannel.fullName:"Неизвестно"}} 
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedType" ></span> 
                                                    {{managerReport.selectedType?managerReport.selectedType.name:""}}  
                                                    <span class="fa fa-angle-right" ng-show="managerReport.selectedObject" ></span>
                                                    {{managerReport.selectedObject?managerReport.selectedObject.name:""}} 
                                                    на {{convert_date(getCurrentTime())}}
                                                    
                                                </th>
                                            </tr>
                                            <tr>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'level_2'">Помещение <span ng-if="managerReport.sort == 'level_2'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'name'">Устройство <span ng-if="managerReport.sort == 'name'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'last_battery'">Заряд батареи в % <span ng-if="managerReport.sort == 'last_battery'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-if="managerReport.selectedTypeChannel.id==31" ng-click="managerReport.sort = 'last_battery2'">Заряд батареи №2 в % <span ng-if="managerReport.sort == 'last_battery2'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'isLowBattery'">Требуется замена батареи <span ng-if="managerReport.sort == 'isLowBattery'" class="fa fa-sort-amount-asc"></span></th>
                                                <th class="pointer th_report" ng-click="managerReport.sort = 'last_datetime'">Дата <span ng-if="managerReport.sort == 'last_datetime'" class="fa fa-sort-amount-asc"></span></th>
                                           </tr>
                                        </thead>
                                        <tbody>
                                            <tr ng-repeat=" channel in managerReport.report.channels | orderBy:natural(managerReport.sort)">
                                                <td class="td_report">{{channel.level_2}}</td>
                                                <td class="td_report">{{channel.name}}</td>
                                                <td class="td_report">{{channel.last_battery}}</td>
                                                <td class="td_report" ng-if="managerReport.selectedTypeChannel.id==31">{{channel.last_battery2}}</td>
                                                <td class="td_report">{{channel.isLowBattery?'Да':'Нет'}}</td>
                                                <td class="td_report">{{channel.last_datetime?convert_date(channel.last_datetime,managerReport.selectedTypeChannel.id):'-'}}</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <div class="control_report">
                            <div ng-show="managerReport.step > 1" ng-click="managerReport.backPage()" class="btn btn-default btn_left btn_control_report">Назад</div>
                            <div ng-show="managerReport.step === 1 || managerReport.step === 2" ng-disabled="managerReport.checkDisabled()" ng-click="managerReport.nextPage()" class="btn btn-default btn_right btn_control_report">Вперед</div>
                            <div ng-show="managerReport.step === 4" ng-disabled="!managerReport.status" ng-click='downloadReport()'   class="btn btn-success btn_right btn_control_report">Выгрузить</div>
                            <div ng-show="managerReport.step === 3" ng-disabled="managerReport.checkDisabled()" style='margin-right: 1rem' ng-click="!managerReport.checkDisabled()&&generateReport()" ng-class="!managerReport.status?'btn-success':'btn-default'" class="btn  btn_right btn_control_report">Cформировать</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>  
        <script src="./js/leaflet.js"></script>
        <script src="./js/leaflet.polylineDecorator.js"></script>
        <script src="./js/angular-leaflet-directive.min.js"></script>
        <script src="./js/angular-leaflet-directive-mapresize.js"></script>
        <script src="./js/Leaflet.fullscreen.min.js"></script>
        <script src="./js/sweet-alert.min.js"></script>
        <script src="./js/app.js?v1.1.15"></script>
        <script src="./js/ngAutocomplete.js"></script>
        <script src="./js/kendo.all.min.js"></script>
    </body>
</html> 
